The Lab
ENTITY native

APPLY_FORCE_TO_ENTITY_CENTER_OF_MASS

returns void9 paramsbuild 1207

Applies a force to the entity's center of mass.

Signature

C
void APPLY_FORCE_TO_ENTITY_CENTER_OF_MASS(Entity entity, int forceType, float x, float y, float z, int component, BOOL isDirectionRel, BOOL isForceRel, BOOL p8); // 0x31DA7CEC5334DB37 b1207

Parameters

#NameType
1entityEntity
2forceTypeint
3xfloat
4yfloat
5zfloat
6componentint
7isDirectionRelBOOL
8isForceRelBOOL
9p8BOOL

Facts

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

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