local VorpCore = {}
TriggerEvent("getCore", function(core)
VorpCore = core
end)
RegisterNetEvent("paycheck_system:getpaycheck")
AddEventHandler("paycheck_system:getpaycheck", function()
local _source = source
local User = VorpCore.getUser(_source)
local Character = User.getUsedCharacter
local group = Character.group
for _, v in pairs(Config.availableGroups) do
if group == v.group then
local amount = group and v.vip_paycheck or v.paycheck
Character.addCurrency(0, amount) -- Money
TriggerClientEvent('vorp:Tip', _source, string.upper(group).." Salário Vip : "..amount.."$", 10000)
break
end
end
end)
To embed this program on your website, copy the following code and paste it into your website's HTML: