The Lab
PLAYER native

SIMULATE_PLAYER_INPUT_GAIT

returns void6 paramsbuild 1207

Simulates movement input for player at the given speed and heading for duration.

Signature

C
void SIMULATE_PLAYER_INPUT_GAIT(Player player, float speed, int duration, float heading, BOOL p4, BOOL p5); // 0xFA0C063C422C4355 b1207

Parameters

#NameType
1playerPlayer
2speedfloat
3durationint
4headingfloat
5p4BOOL
6p5BOOL

Facts

Facts about SIMULATE_PLAYER_INPUT_GAIT
Name
SIMULATE_PLAYER_INPUT_GAIT
Hash
0xFA0C063C422C4355
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(0xFA0C063C422C4355, -- SIMULATE_PLAYER_INPUT_GAIT
  PlayerId(), -- Player player
  0.0, -- float speed
  0, -- int duration
  0.0, -- float heading
  false, -- BOOL p4
  false -- BOOL p5
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xFA0C063C422C4355", // SIMULATE_PLAYER_INPUT_GAIT
  PlayerId(), // Player player
  0.0, // float speed
  0, // int duration
  0.0, // float heading
  false, // BOOL p4
  false // BOOL p5
);
C#
Function.Call((Hash)0xFA0C063C422C4355, // SIMULATE_PLAYER_INPUT_GAIT
  API.PlayerId(), // Player player
  0.0f, // float speed
  0, // int duration
  0.0f, // float heading
  false, // BOOL p4
  false // BOOL p5
);
All PLAYER natives

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