The Lab
PED native

_SET_PED_MOTIVATION

returns void4 paramsbuild 1207

Sets the motivation motivationState of ped to threshold, optionally towards targetPed.

Signature

C
void _SET_PED_MOTIVATION(Ped ped, int motivationState, float threshold, Ped targetPed); // 0x06D26A96CA1BCA75 b1207

Parameters

#NameType
1pedPed
2motivationStateint
3thresholdfloat
4targetPedPed

Facts

Facts about _SET_PED_MOTIVATION
Name
_SET_PED_MOTIVATION
Hash
0x06D26A96CA1BCA75
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(0x06D26A96CA1BCA75, -- _SET_PED_MOTIVATION
  PlayerPedId(), -- Ped ped
  0, -- int motivationState
  0.0, -- float threshold
  PlayerPedId() -- Ped targetPed
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x06D26A96CA1BCA75", // _SET_PED_MOTIVATION
  PlayerPedId(), // Ped ped
  0, // int motivationState
  0.0, // float threshold
  PlayerPedId() // Ped targetPed
);
C#
Function.Call((Hash)0x06D26A96CA1BCA75, // _SET_PED_MOTIVATION
  API.PlayerPedId(), // Ped ped
  0, // int motivationState
  0.0f, // float threshold
  API.PlayerPedId() // Ped targetPed
);
All PED natives

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