SCRIPT ERROR: Execution of native 000000002f7a49e6 in script host failed: Argument at index 1 was null

I have just started to make a FiveM server and I am having the following script error when I spawn into the server.

here is the code section for > callback (@esx_identity/server/main.lua:90)
image

and here is the code for > ref (@esx_identity/server/main.lua:47)

any help would be appreciated as I have been trying to fix this issue myself for about 3 days now. I have no experience in programming at all just a heads up.

Thanks

also. This error occurs when you have finished character creation and there is no movement control for the player on the server.

myIdentifiers.playerid is null sooo u gotta check where playerid is being set and why is it null (btw I would just replace it with source)

I have done what you have suggested but I am still getting the same error.

I have only had this issue since adding in BeatlesProject character creation script.

Because there is a call back you need to do local source = source before you go into the callback, you should also be careful with trusting client input, you don’t have any verification for data or myIndentifiers, which could send anything (like large amounts of data)

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