Created
June 10, 2017 09:34
-
-
Save d0p3t/23d5379ea5c1f48e3f445f79417d29d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RegisterServerEvent('vRP:payment') | |
RegisterServerEvent('vRP:salary') | |
AddEventHandler('vRP:payment',function(player, amount) | |
local user_id = vRP.getUserId(player) | |
if user_id ~= nil then | |
vRP.giveMoney(user_id, amount) | |
end | |
end) | |
AddEventHandler('vRP:salary', function(player) | |
local salary = 50 | |
local user_id = vRP.getUserId(player) | |
if user_id ~= nil then | |
vRP.giveMoney(user_id, salary) | |
vRPclient.notify(player,{"Welfare received : + 50~g~$"}) | |
end | |
end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment