Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RegisterServerEvent('taxi:success')
- AddEventHandler('taxi:success', function()
- print("Player ID " ..source)
- -- Get the players money amount
- TriggerEvent('es:getPlayerFromId', source, function(user)
- total = math.random(3000, 5000);
- -- update player money amount
- user:addMoney((total + 0.0))
- TriggerClientEvent("es_freeroam:notify", source, "CHAR_BANK_MAZE", 1, "Maze Bank", false, "Your money has been updated to ~g~$".. tonumber(total))
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement