Hi,
i have created an UI for show money,bank, and job and i will want update but itsn’t working.
Server:
https://hastebin.com/initilasaq.lua
Client:
https://hastebin.com/nevanuzesi.lisp
UI.html:
https://hastebin.com/opobihahaz.xml
When i change job i use function on other script:
RegisterServerEvent(‘job:setJob’)
AddEventHandler(‘job:setJob’, function(job)
TriggerEvent(‘es:getPlayerFromId’, source, function(user)
exports[‘elysion_ui’]:setJob(job, user.getIdentifier())
end)
end)
i’ve export setJob function
I don’t know why it’s not update when i change my job on menu because it change in database