_GET_IS_PED_MOTIVATION_STATE_ENABLED
Hash
0x33FA048675821DA7Runtime name
GetIsPedMotivationStateEnabledNamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
Signature
BOOL _GET_IS_PED_MOTIVATION_STATE_ENABLED(Ped ped, int motivationState);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
motivationState | int | — |
Returns BOOL
Description
motivationState: see _SET_PED_MOTIVATION
Usage
local retval = GetIsPedMotivationStateEnabled(ped, motivationState)
-- always works, by hash
local retval = Citizen.InvokeNative(0x33FA048675821DA7, ped, motivationState, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = GetIsPedMotivationStateEnabled(ped, motivationState);
// by hash
const retval = Citizen.invokeNative('0x33FA048675821DA7', ped, motivationState, Citizen.returnResultAnyway());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
InvokeNativewith the hash — it always works.
Enums and flags
- PedMotivationState 11 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.