I am so clueless when it comes to this stuff if you can help me out that would be great!
here’s what I made that I thought was the way to go but its not
RegisterServerEvent('bankrob:loot')
AddEventHandler('bankrob:loot', function()
local xPlayer = ESX.GetPlayerFromId(source)
local a = 'cokep'
local b = 'hpipe'
local c = 'lighter'
local d = 'nitro'
xPlayer.addInventoryItem(Math.Random(a,d), Math.Random(2,6))
end)
If anyone can point me in the right direction that would be greatly appreciated.
Cheers!