_REQUEST_WEAPON_ASSET
Requests the assets of the weapon weaponHash to be streamed in.
Wait on _HAS_WEAPON_ASSET_LOADED before creating weapon objects.
Signature
void _REQUEST_WEAPON_ASSET(Hash weaponHash, int p1, BOOL p2); // 0x72D4CB5DB927009C b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | weaponHash | Hash |
| 2 | p1 | int |
| 3 | p2 | BOOL |
Facts
| Name | _REQUEST_WEAPON_ASSET |
|---|---|
| Hash | 0x72D4CB5DB927009C |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x72D4CB5DB927009C, -- _REQUEST_WEAPON_ASSET
GetHashKey("weapon_revolver_cattleman"), -- Hash weaponHash
0, -- int p1
false -- BOOL p2
)Citizen.invokeNative("0x72D4CB5DB927009C", // _REQUEST_WEAPON_ASSET
GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
0, // int p1
false // BOOL p2
);Function.Call((Hash)0x72D4CB5DB927009C, // _REQUEST_WEAPON_ASSET
(uint)API.GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
0, // int p1
false // BOOL p2
);Related WEAPON natives
- _REMOVE_WEAPON_ASSET
- _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
- _GET_WEAPON_GUN_SPINNING_WEAPON_EMOTE_TRICK_TYPE_HASH
- _GIVE_WEAPON_COMPONENT_TO_WEAPON_OBJECT
- _HAS_WEAPON_ASSET_LOADED
- HAS_WEAPON_GOT_WEAPON_COMPONENT
- IS_WEAPON_MELEE_WEAPON
- REMOVE_WEAPON_COMPONENT_FROM_WEAPON_OBJECT
- _REFILL_AMMO_IN_CURRENT_PED_WEAPON
- _REGISTER_WEAPON_OBJECT_FOR_IGNITION
- _REMOVE_WEAPON_COMPONENT_FROM_PED
- _REMOVE_WEAPON_FROM_PED_BY_GUID
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.