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
  • Config.lua tutorial:
  • Other tutorials:

Was this helpful?

  1. SCRIPTS
  2. pc_airdrop

Tutorials

These tutorials will walk you through all the options available.

PreviousOpen files previewNextUpdates

Last updated 2 months ago

Was this helpful?

Config.lua tutorial:

Other tutorials:

How to enable command only for admins (ESX)

Modify existing command code in server/utils.lua to look like this:

-- COMMAND
-- WARNING: THIS COMMAND IS AVAILABLE FOR EVERYONE BY DEFAULT, CHANGE THE CODE BELOW TO ONLY ALLOW CERATIN PEOPLE TO CALL THE AIRDROP!
if Config.AirdropSpawnMethod['command_enabled'] then
    RegisterCommand("airdrop", function(source, args, rawCommand)
        local xPlayer = ESX.GetPlayerFromId(source)
        if (xPlayer.group == 'superadmin' or xPlayer.group == 'admin' or xPlayer.group == 'mod') then
            createNewAirdrop({type = "command", src = source, arg = args})
        end
    end)
end

You can add/remove groups as required

How to enable command only for admins (QBcore/Qbox)

Soon

How to synchronize airdrops for players joining the server

Soon

How to spawn airdrop using arguments (choose place and type)

Soon

📦
🔧
Config tutorial