> For the complete documentation index, see [llms.txt](https://docs.poisoncode.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.poisoncode.com/scripts/pc_airdrop/tutorials.md).

# Tutorials

## Config.lua tutorial:

{% embed url="<https://www.youtube.com/watch?v=iC7wfVIm5KE>" %}
Config tutorial
{% endembed %}

## Other tutorials:

<details>

<summary>How to enable command only for admins (ESX)</summary>

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

```lua
-- 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 = Framework.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

</details>

<details>

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

Soon

</details>

<details>

<summary>How to synchronize airdrops for players joining the server</summary>

Soon

</details>

<details>

<summary>How to spawn airdrop using arguments (choose place and type)</summary>

Soon

</details>
