The Lab
WEAPON native

_GIVE_WEAPON_COMPONENT_TO_ENTITY

returns void4 paramsbuild 1207

Adds the weapon component componentHash to the weapon weaponHash of the entity.

Signature

C
void _GIVE_WEAPON_COMPONENT_TO_ENTITY(Entity entity, Hash componentHash, Hash weaponHash, BOOL p3); // 0x74C9090FDD1BB48E b1207

Parameters

#NameType
1entityEntity
2componentHashHash
3weaponHashHash
4p3BOOL

Facts

Facts about _GIVE_WEAPON_COMPONENT_TO_ENTITY
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.

Lua
Citizen.InvokeNative(0x74C9090FDD1BB48E, -- _GIVE_WEAPON_COMPONENT_TO_ENTITY
  PlayerPedId(), -- Entity entity
  GetHashKey("name"), -- Hash componentHash
  GetHashKey("weapon_revolver_cattleman"), -- Hash weaponHash
  false -- BOOL p3
)
JavaScript
Citizen.invokeNative("0x74C9090FDD1BB48E", // _GIVE_WEAPON_COMPONENT_TO_ENTITY
  PlayerPedId(), // Entity entity
  GetHashKey("name"), // Hash componentHash
  GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
  false // BOOL p3
);
C#
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
);
All WEAPON natives

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