Installation
Enhance your FiveM server with our business system script, where business opportunities come to life!
Step 1
Make sure you have on your server all the scripts written in dependencies
Step 2
Once your purchase is verified, download the resource and add it to the resources of your server. Then add this line of code to your server.cfg
ensure fo4rUtils
ensure fo4rBusinessStep 3
Inside the resource you will find a file called "inventario.lua" where you can change the configuration depending on the inventory you use.
CreateThread(function()
while GetResourceState('ox_inventory') ~= 'started' do Wait(1000) end
for k,v in pairs(Cfg.Negocios) do
local stashpersonal = {
id = v.job..'locker'..k,
label = v.label..' Locker',
owner = true,
slots = 80,
weight = 500000,
}
exports.ox_inventory:RegisterStash(stashpersonal.id, stashpersonal.label, stashpersonal.slots, stashpersonal.weight, stashpersonal.owner)
local stash = {
id = v.job..'inventory'..k,
label = v.label..' Inventario',
slots = 140,
weight = 1000000,
}
exports.ox_inventory:RegisterStash(stash.id, stash.label, stash.slots, stash.weight)
end
end)Step 4
Once you make sure to link your inventory in the script you can configure the script to your liking
Step 5
Turn on your server and enjoy
Last updated