The Lab
ENTITY native

_SET_ENTITY_ROTATION_PARALLEL_TO_LINE

returns void8 paramsbuild 1207

Rotates the entity so it lies parallel to the line between the two given points.

Signature

C
void _SET_ENTITY_ROTATION_PARALLEL_TO_LINE(Entity entity, float x1, float y1, float z1, float x2, float y2, float z2, int p7); // 0xD45BB89B53FC0CFD b1207

Parameters

#NameType
1entityEntity
2x1float
3y1float
4z1float
5x2float
6y2float
7z2float
8p7int

Facts

Facts about _SET_ENTITY_ROTATION_PARALLEL_TO_LINE
Name
_SET_ENTITY_ROTATION_PARALLEL_TO_LINE
Hash
0xD45BB89B53FC0CFD
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0xD45BB89B53FC0CFD, -- _SET_ENTITY_ROTATION_PARALLEL_TO_LINE
  PlayerPedId(), -- Entity entity
  0.0, -- float x1
  0.0, -- float y1
  0.0, -- float z1
  0.0, -- float x2
  0.0, -- float y2
  0.0, -- float z2
  0 -- int p7
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xD45BB89B53FC0CFD", // _SET_ENTITY_ROTATION_PARALLEL_TO_LINE
  PlayerPedId(), // Entity entity
  0.0, // float x1
  0.0, // float y1
  0.0, // float z1
  0.0, // float x2
  0.0, // float y2
  0.0, // float z2
  0 // int p7
);
C#
Function.Call((Hash)0xD45BB89B53FC0CFD, // _SET_ENTITY_ROTATION_PARALLEL_TO_LINE
  API.PlayerPedId(), // Entity entity
  0.0f, // float x1
  0.0f, // float y1
  0.0f, // float z1
  0.0f, // float x2
  0.0f, // float y2
  0.0f, // float z2
  0 // int p7
);
All ENTITY natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.