Spawning Issue (es_extended)

So i’ve done just about everything i can to fix this issue with the latest es_extended i can connect the first time but the next time i try connecting i get the following error

SCRIPT ERROR: @es_extended/client/main.lua:64: attempt to index a nil value (field ‘coords’)

this is the code at line 64

ESX.Game.Teleport(PlayerPedId(), {
x = playerData.coords.x,
y = playerData.coords.y,
z = playerData.coords.z + 0.25,
heading = playerData.coords.heading
},

Make sure your users table has.

`position` VARCHAR(53) NULL DEFAULT '{"x":-269.4,"y":-955.3,"z":31.2,"heading":205.8}',

it does

try using `` between position?

i did didn’t work sadly

I did notice the second time you join your position switches to this format

{“heading”:211.20000000002,“z”:31.199999999998,“y”:-9

Got it fixed finally! Credits go to Smallo
{“heading”:0.0,“z”:71.1,“y”:19.3,“x”:-1.5}
put this in the position under users. and change varchar from 53 to 255

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