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

added heading again for xPlayer.getCoords() #1330

Closed TrymTube closed 5 months ago

TrymTube commented 7 months ago

since it was removed, I added it again, which I did already in the past but somehow you missed the heading again

MoskalykA commented 6 months ago

This will create compatibility problems if the script expects to receive a three-dimensional vector and not a four-dimensional vector ?

Gellipapa commented 5 months ago

This will create compatibility problems if the script expects to receive a three-dimensional vector and not a four-dimensional vector ?

Hi! It will work because the first 3 parameters of vector4 are xyz and so if you wrap in a vector3 then xyz will work as long as it doesn't have the heading value that w would have for vector4.

Gellipapa commented 5 months ago

@TrymTube Hi! Thanks this improvement to getCoords.