[NEED HELP] local Money

local money        = xPlayer.get('money')   <----- server.lua:3: in main chunk
local bank = xPlayer.getAccount('bank').money

We use ESX and I need the right code for “local money” got this error:

… server.lua:3: attempt to index a nil value (global ‘xPlayer’)
stack traceback: server.lua:3: in main chunk

Thx for helping!

Please ask for help in the original resource topic. There is no need for a separate topic for issues and/or questions about a certain resource.

This will keep the forums less cluttered and make searching for others easier. Your issue and/or question may have been solved already in the original topic? If not feel free to ask there, and the original creators will get notified of your issue or question.

:smiley:

OK please give me a hint where the main “esx” topics are… This is a main question sorry about that

Just search on the FiveM Forums ESX and you will almost find evey single topic.

Here’s ESX Base:

Thank you very much!