VORPCORE / vorp_character-lua

character creation for RedM Vorp core framework
GNU General Public License v2.0
9 stars 47 forks source link

Update client.lua, Fix index a nill value (local 'coords') #45

Closed NeoGreen22 closed 8 months ago

NeoGreen22 commented 8 months ago

Fix for Script Error: @vorp_core/client/spawnplayer.lua30: attempt to index a nil value (local 'coords')

TeleportToCoords (@vorp_core/client/spawnplayer/lua:30) handler (@vorp_core/client/spawnplayer.lua:60) CharSelect (@vorp_character/client/client.lua:513) handler (@vorp_character/client/client.lua:58)

Not sure if this the correct fix but i noticed the local was playercoords instead of coords so kept showing nil

RealStonerGamer commented 8 months ago

only line 513 needs to change

RealStonerGamer commented 8 months ago

other stay the same and its fixed that is the issue for that

NeoGreen22 commented 8 months ago

ok sounds good, wait for outsider to check it out