_GIVE_WEAPON_COMPONENT_TO_ENTITY
Adds the weapon component componentHash to the weapon weaponHash of the entity.
Signature
void _GIVE_WEAPON_COMPONENT_TO_ENTITY(Entity entity, Hash componentHash, Hash weaponHash, BOOL p3); // 0x74C9090FDD1BB48E b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | componentHash | Hash |
| 3 | weaponHash | Hash |
| 4 | p3 | BOOL |
Facts
| Name | _GIVE_WEAPON_COMPONENT_TO_ENTITY |
|---|---|
| Hash | 0x74C9090FDD1BB48E |
| 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(0x74C9090FDD1BB48E, -- _GIVE_WEAPON_COMPONENT_TO_ENTITY
PlayerPedId(), -- Entity entity
GetHashKey("name"), -- Hash componentHash
GetHashKey("weapon_revolver_cattleman"), -- Hash weaponHash
false -- BOOL p3
)Citizen.invokeNative("0x74C9090FDD1BB48E", // _GIVE_WEAPON_COMPONENT_TO_ENTITY
PlayerPedId(), // Entity entity
GetHashKey("name"), // Hash componentHash
GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
false // BOOL p3
);Function.Call((Hash)0x74C9090FDD1BB48E, // _GIVE_WEAPON_COMPONENT_TO_ENTITY
API.PlayerPedId(), // Entity entity
(uint)API.GetHashKey("name"), // Hash componentHash
(uint)API.GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
false // BOOL p3
);Related WEAPON natives
- _GIVE_WEAPON_COMPONENT_TO_WEAPON_OBJECT
- _GIVE_WEAPON_COLLECTION_TO_PED
- GIVE_DELAYED_WEAPON_TO_PED
- GIVE_WEAPON_TO_PED
- GIVE_WEAPON_TO_PED_WITH_OPTIONS
- HAS_WEAPON_GOT_WEAPON_COMPONENT
- REMOVE_WEAPON_COMPONENT_FROM_WEAPON_OBJECT
- _GET_WEAPON_COMPONENT_TYPE_MODEL
- _GET_WEAPON_FROM_DEFAULT_PED_WEAPON_COLLECTION
- _GET_WEAPON_GUN_SPINNING_WEAPON_EMOTE_TRICK_TYPE_HASH
- _ATTACH_WEAPON_TO_HORSE_HOLSTER
- _HAS_ENTITY_BEEN_DAMAGED_BY_WEAPON
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.