_SET_PED_MOTIVATION_STATE_OVERRIDE
Hash
0x2EB75FB86C41F026Runtime name
SetPedMotivationStateOverrideNamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _SET_PED_MOTIVATION_STATE_OVERRIDE(Ped ped, int motivationState, BOOL enabled);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
motivationState | int | — |
enabled | BOOL | — |
Returns void
Description
motivationState: see _SET_PED_MOTIVATION
Usage
SetPedMotivationStateOverride(ped, motivationState, enabled)
-- always works, by hash
Citizen.InvokeNative(0x2EB75FB86C41F026, ped, motivationState, enabled)JavaScript and C#
SetPedMotivationStateOverride(ped, motivationState, enabled);
// by hash
Citizen.invokeNative('0x2EB75FB86C41F026', ped, motivationState, enabled);Function.Call((Hash)0x2EB75FB86C41F026, ped, motivationState, enabled);- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Enums and flags
- PedMotivationState 11 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.