πŸ”ŒVersion compatibility

Page with information helpful for converting your config files to a new version

Most of the times when there's an update you can modify existing config files, so you don't have to configure everything from the start.

chevron-rightUpdating from 1.0 to 1.1hashtag

Download 1.1 version and replace new utils and config files with your old files. Modify your old files:

config/config.lua : You need to add this anywhere in the file

-- Here you can choose which options should be available in ox_target
-- You can still control the access to these options with permissions in Config.Permissions
Config.target = {
    tablet = true, -- enables opening the tablet with ox_target
    safeCheck = true, -- enables checking the organization's safe with ox_target
    safeDeposit = true, -- enables depositing and withdrawing money from the organization's safe with ox_target
    safeWithdraw = true, -- enables withdrawing money from the organization's safe with ox_target
    warehouse = true, -- enables opening the warehouse with ox_target
    wardrobe = true, -- enables opening the wardrobe with ox_target
    wardrobeAdd = true, -- enables adding outfits to the wardrobe with ox_target
    wardrobeRemove = true, -- enables removing an outfit from the wardrobe with ox_target
}

config/translations.lua : You need to add this anywhere in the file

openTablet = "Open tablet",

server/utils.lua : You need to add this anywhere in the file

ESX.RegisterCommand('orgmenu', {'user'}, function(xPlayer, args, showError)
    if exports["pc_organizations"]:hasOrgJob(xPlayer.source) then
        TriggerClientEvent("pc_organizations:OpenTablet", xPlayer.source)
    end
end, true, {help = ('Opens organizations tablet')})

Last updated