The Lab
PED native

_SET_PED_MOTIVATION_STATE_OVERRIDE

returns void3 paramsbuild 1207

Enables or disables an override of the motivation motivationState on ped.

Signature

C
void _SET_PED_MOTIVATION_STATE_OVERRIDE(Ped ped, int motivationState, BOOL enabled); // 0x2EB75FB86C41F026 b1207

Parameters

#NameType
1pedPed
2motivationStateint
3enabledBOOL

Facts

Facts about _SET_PED_MOTIVATION_STATE_OVERRIDE
Name
_SET_PED_MOTIVATION_STATE_OVERRIDE
Hash
0x2EB75FB86C41F026
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(0x2EB75FB86C41F026, -- _SET_PED_MOTIVATION_STATE_OVERRIDE
  PlayerPedId(), -- Ped ped
  0, -- int motivationState
  false -- BOOL enabled
)
JavaScript
Citizen.invokeNative("0x2EB75FB86C41F026", // _SET_PED_MOTIVATION_STATE_OVERRIDE
  PlayerPedId(), // Ped ped
  0, // int motivationState
  false // BOOL enabled
);
C#
Function.Call((Hash)0x2EB75FB86C41F026, // _SET_PED_MOTIVATION_STATE_OVERRIDE
  API.PlayerPedId(), // Ped ped
  0, // int motivationState
  false // BOOL enabled
);
All PED natives

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