RedM Natives

_GET_IS_PED_MOTIVATION_STATE_ENABLED

Hash0x33FA048675821DA7
Runtime nameGetIsPedMotivationStateEnabled
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _GET_IS_PED_MOTIVATION_STATE_ENABLED(Ped ped, int motivationState);

Parameters

NameTypeDescription
pedPed—
motivationStateint—

Returns BOOL

Description

motivationState: see _SET_PED_MOTIVATION

Usage

Lua
local retval = GetIsPedMotivationStateEnabled(ped, motivationState)

-- always works, by hash
local retval = Citizen.InvokeNative(0x33FA048675821DA7, ped, motivationState, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = GetIsPedMotivationStateEnabled(ped, motivationState);

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