The Lab
WEAPON native

SET_PED_DROPS_INVENTORY_WEAPON

returns void6 paramsbuild 1207

Makes the ped drop the weapon weaponHash from its inventory at the given offset with ammoCount rounds.

Signature

C
void SET_PED_DROPS_INVENTORY_WEAPON(Ped ped, Hash weaponHash, float xOffset, float yOffset, float zOffset, int ammoCount); // 0x208A1888007FC0E6 b1207

Parameters

#NameType
1pedPed
2weaponHashHash
3xOffsetfloat
4yOffsetfloat
5zOffsetfloat
6ammoCountint

Facts

Facts about SET_PED_DROPS_INVENTORY_WEAPON
Name
SET_PED_DROPS_INVENTORY_WEAPON
Hash
0x208A1888007FC0E6
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(0x208A1888007FC0E6, -- SET_PED_DROPS_INVENTORY_WEAPON
  PlayerPedId(), -- Ped ped
  GetHashKey("weapon_revolver_cattleman"), -- Hash weaponHash
  0.0, -- float xOffset
  0.0, -- float yOffset
  0.0, -- float zOffset
  0 -- int ammoCount
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x208A1888007FC0E6", // SET_PED_DROPS_INVENTORY_WEAPON
  PlayerPedId(), // Ped ped
  GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
  0.0, // float xOffset
  0.0, // float yOffset
  0.0, // float zOffset
  0 // int ammoCount
);
C#
Function.Call((Hash)0x208A1888007FC0E6, // SET_PED_DROPS_INVENTORY_WEAPON
  API.PlayerPedId(), // Ped ped
  (uint)API.GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
  0.0f, // float xOffset
  0.0f, // float yOffset
  0.0f, // float zOffset
  0 // int ammoCount
);
All WEAPON natives

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