RedM Natives

_SET_PED_MOTIVATION_STATE_OVERRIDE

Hash0x2EB75FB86C41F026
Runtime nameSetPedMotivationStateOverride
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _SET_PED_MOTIVATION_STATE_OVERRIDE(Ped ped, int motivationState, BOOL enabled);

Parameters

NameTypeDescription
pedPed—
motivationStateint—
enabledBOOL—

Returns void

Description

motivationState: see _SET_PED_MOTIVATION

Usage

Lua
SetPedMotivationStateOverride(ped, motivationState, enabled)

-- always works, by hash
Citizen.InvokeNative(0x2EB75FB86C41F026, ped, motivationState, enabled)
JavaScript and C#
JavaScript
SetPedMotivationStateOverride(ped, motivationState, enabled);

// by hash
Citizen.invokeNative('0x2EB75FB86C41F026', ped, motivationState, enabled);
C#
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 InvokeNative with the hash — it always works.

Enums and flags

Sources

alloc8or RDR3 NativeDB

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