Esx_showjob doesn't refresh when you change your'e job HOW FIX?

,

my esx_showjob doesn’t refresh when i change my job how can i fix
this is the code:
PlayerData = {}

ESX = nil

Citizen.CreateThread(function()

while ESX == nil do

    TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)

    Citizen.Wait(10)

end

while ESX.GetPlayerData() == nil do

    Citizen.Wait(10)

end

PlayerData = ESX.GetPlayerData()

end)

RegisterCommand(“baan”, function(source, args, raw)

Show()

end, false)

function Show()

ESX.ShowNotification('You are working as an: ~g~' .. PlayerData.job.label .. " ~s~-~g~ " .. PlayerData.job.grade_label)

end

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.