The Lab
WEAPON native

GIVE_WEAPON_TO_PED

returns Hash13 paramsbuild 1207

Gives the ped the weapon weaponHash with ammoCount rounds, with options to force it in hand or holster and set its attach point and degradation. Returns a weapon hash.

Signature

C
Hash GIVE_WEAPON_TO_PED(Ped ped, Hash weaponHash, int ammoCount, BOOL bForceInHand, BOOL bForceInHolster, int attachPoint, BOOL bAllowMultipleCopies, float p7, float p8, Hash addReason, BOOL bIgnoreUnlocks, float permanentDegradation, BOOL p12); // 0x5E3BDDBCB83F3D84 b1207

Parameters

#NameType
1pedPed
2weaponHashHash
3ammoCountint
4bForceInHandBOOL
5bForceInHolsterBOOL
6attachPointint
7bAllowMultipleCopiesBOOL
8p7float
9p8float
10addReasonHash
11bIgnoreUnlocksBOOL
12permanentDegradationfloat
13p12BOOL

Facts

Facts about GIVE_WEAPON_TO_PED
Name
GIVE_WEAPON_TO_PED
Hash
0x5E3BDDBCB83F3D84
Namespace
Returns
Hash
Game build
1207

Examples

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

Lua
local hash = Citizen.InvokeNative(0x5E3BDDBCB83F3D84, -- GIVE_WEAPON_TO_PED
  PlayerPedId(), -- Ped ped
  GetHashKey("weapon_revolver_cattleman"), -- Hash weaponHash
  0, -- int ammoCount
  false, -- BOOL bForceInHand
  false, -- BOOL bForceInHolster
  0, -- int attachPoint
  false, -- BOOL bAllowMultipleCopies
  0.0, -- float p7
  0.0, -- float p8
  GetHashKey("name"), -- Hash addReason
  false, -- BOOL bIgnoreUnlocks
  0.0, -- float permanentDegradation
  false, -- BOOL p12
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const hash = Citizen.invokeNative("0x5E3BDDBCB83F3D84", // GIVE_WEAPON_TO_PED
  PlayerPedId(), // Ped ped
  GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
  0, // int ammoCount
  false, // BOOL bForceInHand
  false, // BOOL bForceInHolster
  0, // int attachPoint
  false, // BOOL bAllowMultipleCopies
  0.0, // float p7
  0.0, // float p8
  GetHashKey("name"), // Hash addReason
  false, // BOOL bIgnoreUnlocks
  0.0, // float permanentDegradation
  false, // BOOL p12
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0x5E3BDDBCB83F3D84, // GIVE_WEAPON_TO_PED
  API.PlayerPedId(), // Ped ped
  (uint)API.GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
  0, // int ammoCount
  false, // BOOL bForceInHand
  false, // BOOL bForceInHolster
  0, // int attachPoint
  false, // BOOL bAllowMultipleCopies
  0.0f, // float p7
  0.0f, // float p8
  (uint)API.GetHashKey("name"), // Hash addReason
  false, // BOOL bIgnoreUnlocks
  0.0f, // float permanentDegradation
  false // BOOL p12
);
All WEAPON natives

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