fix(es_extended/client/modules/npwd): use RegisterNetEvent for esx:playerLoaded

This commit is contained in:
Ilias Rbayti
2024-11-17 21:47:43 +01:00
parent 1fb6037aad
commit 56cd03c68a
+1 -1
View File
@@ -9,7 +9,7 @@ local function checkPhone()
npwd:setPhoneDisabled((phoneItem and phoneItem.count or 0) <= 0)
end
ESX.SecureNetEvent("esx:playerLoaded", checkPhone)
RegisterNetEvent("esx:playerLoaded", checkPhone)
AddEventHandler("onClientResourceStart", function(resource)
if resource ~= "npwd" then