bob74_ipl). It belongs to one job or to nobody.
Add a workshop
InConfig.Forgery.workshops (config/forgery.lua):
Buying and owning
- Buying: a workshop without an owner shows “Workshop for sale” at its door. The boss of a job buys it for the job with black money (
Config.Forgery.payAccount). - Several per job: a job can own as many as it can pay, or as many as
ownership.perJoballows. - Who is the boss: the highest rank of the owning job, and as many ranks below it as
ownership.bossDepthsays. The boss buys, sells, hires and upgrades. - Members of the owning job enter from the workshop’s
minGrade. Others ring the bell, and a member inside can let them in. - Selling: the boss sells it at the workshop laptop (Upgrades page) and gets
ownership.refundof what was paid back (nothing for a workshop an admin gave).ownership.sellable = falseturns that off.
What stays when a workshop loses its owner
Black money: on ESX the
black_money account, on QBCore the markedbills item (its value in metadata.worth), on Qbox the stackable black_money item.Upgrades
The boss buys upgrades at the laptop, with black money.
Prices are in
Config.Forgery.upgrades, or in game.
The boss laptop
The laptop on the boss desk shows its page on the real screen in the room, with tabs:- Overview: workers, devices and desks
- Staff: hire and fire workers and the guard, pay wages, choose what the workers destroy during a raid
- Tickets: the order queue
- Material: order material, delivered to the raw material storage after a delay
- Upgrades: buy upgrades, sell the workshop
Storages
Every workshop has three storages that open at their shelves:
Sizes are in
Config.Forging.stores. Workers put the documents of one order into an ID stack (id_stack), a container that holds them in one slot. Dragging one document onto another makes a stack too. qb-inventory has no containers, so there the documents arrive one by one.
Every target reaches 2 metres (
Config.TargetDistance), and the server takes actions only from a member standing at the station. Guests and officers inside see none of the stations.