esx-framework / esx_core

Official Repo For core resources for esx-legacy
https://documentation.esx-framework.org/
GNU General Public License v3.0
368 stars 733 forks source link

[Bug] - es_extended #1347

Closed Shafat21 closed 5 months ago

Shafat21 commented 5 months ago

Describe the bug Getting this error when I want to spawn a car in the world

To Reproduce SCRIPT ERROR: @es_extended/server/onesync.lua:55: attempt to perform arithmetic on a nil value (local 'playerCoords')

Expected behavior It should spawn me a car without an error

Screenshots image

Debug Info (please complete the following information):

Thekuca commented 5 months ago

Show us your code where you are using the function for spawning the car

Gellipapa commented 5 months ago

@Shafat21 Hi! This is unique case probably the coordinate you entered is nil and that's why you get error.

Contact me on discord and I'll help you guys fix your scripted problem, but it's not a global problem, it's a local problem.