The Lab
PED native

HAS_MOTION_TYPE_ASSET_LOADED

returns BOOL2 paramsbuild 1207

Returns true once the motion type asset nameHash has loaded for ped.

Signature

C
BOOL HAS_MOTION_TYPE_ASSET_LOADED(Hash nameHash, Ped ped); // 0x854BC9B1A1CCD034 b1207

Parameters

#NameType
1nameHashHash
2pedPed

Facts

Facts about HAS_MOTION_TYPE_ASSET_LOADED
Name
HAS_MOTION_TYPE_ASSET_LOADED
Hash
0x854BC9B1A1CCD034
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x854BC9B1A1CCD034, -- HAS_MOTION_TYPE_ASSET_LOADED
  GetHashKey("name"), -- Hash nameHash
  PlayerPedId() -- Ped ped
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x854BC9B1A1CCD034", // HAS_MOTION_TYPE_ASSET_LOADED
  GetHashKey("name"), // Hash nameHash
  PlayerPedId(), // Ped ped
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x854BC9B1A1CCD034, // HAS_MOTION_TYPE_ASSET_LOADED
  (uint)API.GetHashKey("name"), // Hash nameHash
  API.PlayerPedId() // Ped ped
);
All PED natives

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