RedM Natives

TASK_FORCE_MOTION_STATE

Hash0x4F056E1AFFEF17AB
Runtime nameTaskForceMotionState
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x4F056E1AFFEF17AB

Signature

void TASK_FORCE_MOTION_STATE(Ped ped, Hash motionStateHash, BOOL p2);

Parameters

NameTypeDescription
pedPed—
motionStateHashHash—
p2BOOL—

Returns void

Description

motionStateHash: see FORCE_PED_MOTION_STATE

Usage

Lua
TaskForceMotionState(ped, motionStateHash, p2)

-- always works, by hash
Citizen.InvokeNative(0x4F056E1AFFEF17AB, ped, motionStateHash, p2)
JavaScript and C#
JavaScript
TaskForceMotionState(ped, motionStateHash, p2);

// by hash
Citizen.invokeNative('0x4F056E1AFFEF17AB', ped, motionStateHash, p2);
C#
Function.Call((Hash)0x4F056E1AFFEF17AB, ped, motionStateHash, p2);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Enums and flags

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.