Attempt to index boolean value xPlayer

Why does this happen:

SCRIPT ERROR: @es_extended/server/commands.lua:22: attempt to index a boolean value (local ‘xPlayer’)
cb (@es_extended/server/commands.lua:22)
ref (@es_extended/server/functions.lua:130)

When i type an command for example: /car carname
Because on that line it’s this: local xPlayer = ESX.GetPlayerFromId(source)
But that means, that it doesn’t see my ID…
What makes sense because when i want to /setgroup 1 admin for example, the ID is not online.
But how to fix this part?

Hello, this is a friendly reminder because this is your first time creating a topic (or it has been a while since your last topic) in this category.

Please note that most of the support is provided by the Cfx.re community on a voluntary basis. We ask you to be patient; there is no guarantee we have a solution to your problem(s). To avoid unnecessary/duplicate topics, please browse the forums before creating a topic.

To improve your chances of your issue(s) being solved, please provide as much information as possible about the issue(s) you are having. Also —whenever possible— please use the template given to you when creating a topic.

Thanks for keeping these forums tidy!
:mascot:

Another one of those typical ESX errors. You probably installed something incorrectly or have a bad server.cfg load order.

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