The Lab
ENTITY native

APPLY_FORCE_TO_ENTITY

returns void14 paramsbuild 1207

Applies a force to the entity at an offset, with flags controlling the force type and whether direction and offset are relative.

Signature

C
void APPLY_FORCE_TO_ENTITY(Entity entity, int forceFlags, float x, float y, float z, float offX, float offY, float offZ, int boneIndex, BOOL isDirectionRel, BOOL ignoreUpVec, BOOL isForceRel, BOOL p12, BOOL p13); // 0xF15E8F5D333F09C4 b1207

Parameters

#NameType
1entityEntity
2forceFlagsint
3xfloat
4yfloat
5zfloat
6offXfloat
7offYfloat
8offZfloat
9boneIndexint
10isDirectionRelBOOL
11ignoreUpVecBOOL
12isForceRelBOOL
13p12BOOL
14p13BOOL

Facts

Facts about APPLY_FORCE_TO_ENTITY
Name
APPLY_FORCE_TO_ENTITY
Hash
0xF15E8F5D333F09C4
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(0xF15E8F5D333F09C4, -- APPLY_FORCE_TO_ENTITY
  PlayerPedId(), -- Entity entity
  0, -- int forceFlags
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  0.0, -- float offX
  0.0, -- float offY
  0.0, -- float offZ
  0, -- int boneIndex
  false, -- BOOL isDirectionRel
  false, -- BOOL ignoreUpVec
  false, -- BOOL isForceRel
  false, -- BOOL p12
  false -- BOOL p13
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xF15E8F5D333F09C4", // APPLY_FORCE_TO_ENTITY
  PlayerPedId(), // Entity entity
  0, // int forceFlags
  0.0, // float x
  0.0, // float y
  0.0, // float z
  0.0, // float offX
  0.0, // float offY
  0.0, // float offZ
  0, // int boneIndex
  false, // BOOL isDirectionRel
  false, // BOOL ignoreUpVec
  false, // BOOL isForceRel
  false, // BOOL p12
  false // BOOL p13
);
C#
Function.Call((Hash)0xF15E8F5D333F09C4, // APPLY_FORCE_TO_ENTITY
  API.PlayerPedId(), // Entity entity
  0, // int forceFlags
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  0.0f, // float offX
  0.0f, // float offY
  0.0f, // float offZ
  0, // int boneIndex
  false, // BOOL isDirectionRel
  false, // BOOL ignoreUpVec
  false, // BOOL isForceRel
  false, // BOOL p12
  false // BOOL p13
);
All ENTITY natives

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