gl-halloween.rar (73.6 KB)
Ello there Lads and Ladettes, since it’s October and there are already two paid trick or treat scripts, I give you my version for free. It uses bt-target, and includes a hundred or so locations already set up in the config.
Change the items straight in the config, as well as the amount. Included in the zip is the images I used for the items that I set mine up to use.
Reposting because I forgot to put the download in the other post.
It’s made for ESX BUT IF YOU NEED TO CONVERT IT, Just change this one event in the server Lua
RegisterServerEvent('gl-halloween:getSurprise',function()
local xPlayer = ESX.GetPlayerFromId(source)
local surprise = Config.Items[math.random(#Config.Items)]
xPlayer.addInventoryItem(surprise,Config.Amount)
end)