diff --git a/[core]/es_extended/client/modules/npwd.lua b/[core]/es_extended/client/modules/npwd.lua index fb04f356..b8de8dab 100644 --- a/[core]/es_extended/client/modules/npwd.lua +++ b/[core]/es_extended/client/modules/npwd.lua @@ -5,7 +5,8 @@ local function checkPhone() return end - npwd:setPhoneDisabled((ESX.SearchInventory('phone').count or 0) <= 0) + local phoneItem = ESX.SearchInventory('phone') + npwd:setPhoneDisabled((phoneItem and phoneItem.count or 0) <= 0) end RegisterNetEvent('esx:playerLoaded', checkPhone)