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)