Character skin

Hey there,

When characters are loading in, ESX is not reading the skin value for the player from the users table. Characters (for example) are spawning in as males when the skin value says that they are female.

In the FXServer console, it is giving the following error:

[ script:esx_skin] SCRIPT ERROR: @esx_skin/server/main.lua:50: attempt to index a nil value (local ‘user’)
[ script:esx_skin] > ref (@esx_skin/server/main.lua:50)
[ script:esx_skin] > (@mysql-async/mysql-async.js:15543)

Line 50 in the Pastebin is line 50 in the main.lua: @esx_skin/server/main.lua - Pastebin.com

Hopefully someone can point out why it’s trying to index a nil value. Any help would be appreciated.

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