PoisonCode Docs
TebexDiscordYoutube
  • SCRIPTS
    • 💡pc_collections
      • ✨Features
      • đŸ–Ĩī¸Installation & dependencies
      • đŸ› ī¸Exports & events
      • âš™ī¸Open files preview
      • 🔧Tutorials
      • đŸ“ĨUpdates
        • 🤔How to update
        • 🔌Version compatibility
    • 💎pc_organizations
      • ✨Features
      • đŸ–Ĩī¸Installation & dependencies
      • đŸ› ī¸Exports & events
      • âš™ī¸Open files preview
      • 🔧Tutorials
      • đŸ“ĨUpdates
        • 🤔How to update
        • 🔌Version compatibility
    • 💡pc_skills
      • ✨Features
      • đŸ–Ĩī¸Installation & dependencies
      • đŸ› ī¸Exports & events
      • âš™ī¸Open files preview
      • 🔧Tutorials
      • đŸ“ĨUpdates
        • 🤔How to update
    • đŸ“Ļpc_airdrop
      • ✨Features
      • đŸ–Ĩī¸Installation & dependencies
      • âš™ī¸Open files preview
      • 🔧Tutorials
      • đŸ“ĨUpdates
        • 🤔How to update
    • đŸ’Ŧpc_notifications
      • ✨Features
      • đŸ–Ĩī¸Installation & dependencies
      • đŸ•šī¸Usage
Powered by GitBook
On this page

Was this helpful?

  1. SCRIPTS
  2. pc_organizations
  3. Updates

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.

Updating from 1.0 to 1.1

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')})
PreviousHow to updateNextpc_skills

Last updated 4 months ago

Was this helpful?

💎
đŸ“Ĩ
🔌