Hello,
how can i make money in my sql with a script?
example:
Player kills a player and gets $ 100
sry for my Eng.
Hello,
how can i make money in my sql with a script?
example:
Player kills a player and gets $ 100
sry for my Eng.
Well what are you using? essentialmode? vRP? ESX? Or something else? Each of them have their own commands for adding money to a players account.
Ahhh ok, i have essentialmode and fs_freemode
RegisterServerEvent('giveBank')
AddEventHandler('giveBank', function(amount)
local source = source
TriggerEvent('es:getPlayerFromId', source, function(user)
user.addBank(tonumber(amount))
end)
end)
Replace Bank by Money if you want to give him cash.
yes it works ! thank you