Okay, this solved the problem:
RegisterNetEvent(‘esx_customui:updateStatus’)
AddEventHandler(‘esx_customui:updateStatus’, function(status)
SendNUIMessage({action = “updateStatus”, status = status})
SendNUIMessage({
show = IsPauseMenuActive(),
health = (GetEntityHealth(GetPlayerPed(-1))-100),
armor = (GetPedArmour(GetPlayerPed(-1)))
})
end)
1 Like