RedM Natives

_GET_PED_MOTIVATION

If targetPed is set to 0 the ped motivationState affects everyone

Hash0x42688E94E96FD9B4
Runtime nameGetPedMotivation
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207

Signature

float _GET_PED_MOTIVATION(Ped ped, int motivationState, Ped targetPed);

Parameters

NameTypeDescription
pedPed—
motivationStateint—
targetPedPed—

Returns float

Description

If targetPed is set to 0 the ped motivationState affects everyone

Usage

Lua
local retval = GetPedMotivation(ped, motivationState, targetPed)

-- always works, by hash
local retval = Citizen.InvokeNative(0x42688E94E96FD9B4, ped, motivationState, targetPed, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = GetPedMotivation(ped, motivationState, targetPed);

// by hash
const retval = Citizen.invokeNative('0x42688E94E96FD9B4', ped, motivationState, targetPed, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
C#
float retval = Function.Call<float>((Hash)0x42688E94E96FD9B4, ped, motivationState, targetPed);
  • 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

See also

Sources

alloc8or RDR3 NativeDB

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