Skip to main content

GET_OFFSET_FROM_CAR_IN_WORLD_COORDS

Game.GetOffsetFromCarInWorldCoordsHash0x7F8D3DD9
Usage
local pOffX, pOffY, pOffZ = Game.GetOffsetFromCarInWorldCoords(carIndex, x, y, z)

Returns the coordinates of an offset of the vehicle's position, depending on the vehicle's rotation.

Parameters

  • carIndexintegerint
  • xnumberfloat
  • ynumberfloat
  • znumberfloat

Returns

  • pOffXnumberfloat*
  • pOffYnumberfloat*
  • pOffZnumberfloat*
Original declaration
// 0x7F8D3DD9
void GET_OFFSET_FROM_CAR_IN_WORLD_COORDS(int carIndex, float x, float y, float z, float* pOffX, float* pOffY, float* pOffZ);