Attempt to call a nil value

After some searches this always shows in my F8
I cannot find how to fix this errors showing when I run some scripts

Attempt to call a nil value (field ‘showNotification’) < – Specially this. It doesn’t notify the player and this error shows up
Attempt to call a nil value (global ‘ESX’) <-- also this show when player just reconnected. I don’t know what is the effect of this error yet.

Send a screenshot of the full error.

image

Can you send the full server.lua or more of it at least, plus is it supposed to be

TriggerEvent("cooldownt")

or

TriggerEvent("cooldown")

xPlayer is nil,

Can you show how you have declared xPlayer?

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