_HAS_WEAPON_ASSET_LOADED
Returns true once the assets for the weapon weaponHash have loaded.
Signature
BOOL _HAS_WEAPON_ASSET_LOADED(Hash weaponHash); // 0xFF07CF465F48B830 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | weaponHash | Hash |
Facts
| Name | _HAS_WEAPON_ASSET_LOADED |
|---|---|
| Hash | 0xFF07CF465F48B830 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xFF07CF465F48B830, -- _HAS_WEAPON_ASSET_LOADED
GetHashKey("weapon_revolver_cattleman") -- Hash weaponHash
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xFF07CF465F48B830", // _HAS_WEAPON_ASSET_LOADED
GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xFF07CF465F48B830, // _HAS_WEAPON_ASSET_LOADED
(uint)API.GetHashKey("weapon_revolver_cattleman") // Hash weaponHash
);Related WEAPON natives
- HAS_WEAPON_GOT_WEAPON_COMPONENT
- _HAS_ENTITY_BEEN_DAMAGED_BY_WEAPON
- _HAS_ENTITY_BEEN_DAMAGED_BY_WEAPON_RECENTLY
- _HAS_PED_GOT_WEAPON_COMPONENT
- _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
- _GET_WEAPON_GUN_SPINNING_WEAPON_EMOTE_TRICK_TYPE_HASH
- _GET_WEAPON_HAS_MULTIPLE_AMMO_TYPES
- _GIVE_WEAPON_COMPONENT_TO_WEAPON_OBJECT
- _REMOVE_WEAPON_ASSET
- _REQUEST_WEAPON_ASSET
- HAS_PED_GOT_WEAPON
- IS_WEAPON_MELEE_WEAPON
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.