Anyone having an issue with not receiving the money after working… I tried multiple girls and although its saying im getting paid im not actually getting the money. im using esx
1 Like
so I have no framework is this right?
Citizen.CreateThread(function()
while == nil do
TriggerEvent(‘getSharedObject’, function(obj) = obj end)
Citizen.Wait(0)
end
end)
function GivePlayerCash(id, amount)
if ~= nil then
local p = .GetPlayerFromId(id) or .GetPlayerFromIdentifier(id)
if p ~= nil then
p.addMoney(amount)
return true
end
end
return false
end
For standalone usage you would remove the thread (Citizen.CreateThread) and everything inside of it, as well as the contents of the GivePlayerCash
function.
Yes this exactly what im struggling with
blips not popping up bro