TASK_FORCE_MOTION_STATE
Hash
0x4F056E1AFFEF17ABRuntime name
TaskForceMotionStateNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x4F056E1AFFEF17ABSignature
void TASK_FORCE_MOTION_STATE(Ped ped, Hash motionStateHash, BOOL p2);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
motionStateHash | Hash | — |
p2 | BOOL | — |
Returns void
Description
motionStateHash: see FORCE_PED_MOTION_STATE
Usage
TaskForceMotionState(ped, motionStateHash, p2)
-- always works, by hash
Citizen.InvokeNative(0x4F056E1AFFEF17AB, ped, motionStateHash, p2)JavaScript and C#
TaskForceMotionState(ped, motionStateHash, p2);
// by hash
Citizen.invokeNative('0x4F056E1AFFEF17AB', ped, motionStateHash, p2);Function.Call((Hash)0x4F056E1AFFEF17AB, ped, motionStateHash, p2);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Enums and flags
- CPedMotionStates__eMotionState 83 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.