Native referenceFiveM

GET_OFFSET_FROM_ENTITY_GIVEN_WORLD_COORDS

0x2274BC1C4885E333 ENTITY
FUNCTION SIGNATURE
Vector3 GET_OFFSET_FROM_ENTITY_GIVEN_WORLD_COORDS(Entity entity, float posX, float posY, float posZ);
Property Value
Native Name GET_OFFSET_FROM_ENTITY_GIVEN_WORLD_COORDS
Hash 0x2274BC1C4885E333
Return Type Vector3
Parameters entity (Entity), posX (float), posY (float), posZ (float)

Description: ``` Converts world coords (posX - Z) to coords relative to the entity
Example:
posX = 50
posY = 1000
posZ = 60
Entity's coords are: x=30, y=1000, z=60.
All three returned coords will then be in range of [-20,20] depending on rotation of the entity.

Back to ENTITY