The Lab
WEAPON native

MAKE_PED_DROP_WEAPON

returns Entity5 paramsbuild 1207

Makes the ped drop the weapon at the given attach point and returns the dropped weapon entity.

Signature

C
Entity MAKE_PED_DROP_WEAPON(Ped ped, BOOL p1, int attachPoint, BOOL p3, BOOL p4); // 0xCEF4C65DE502D367 b1207

Parameters

#NameType
1pedPed
2p1BOOL
3attachPointint
4p3BOOL
5p4BOOL

Facts

Facts about MAKE_PED_DROP_WEAPON
Name
MAKE_PED_DROP_WEAPON
Hash
0xCEF4C65DE502D367
Namespace
Returns
Entity
Game build
1207

Examples

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

Lua
local entity = Citizen.InvokeNative(0xCEF4C65DE502D367, -- MAKE_PED_DROP_WEAPON
  PlayerPedId(), -- Ped ped
  false, -- BOOL p1
  0, -- int attachPoint
  false, -- BOOL p3
  false, -- BOOL p4
  Citizen.ResultAsInteger()
)
print(entity)
JavaScript
const entity = Citizen.invokeNative("0xCEF4C65DE502D367", // MAKE_PED_DROP_WEAPON
  PlayerPedId(), // Ped ped
  false, // BOOL p1
  0, // int attachPoint
  false, // BOOL p3
  false, // BOOL p4
  Citizen.resultAsInteger()
);
console.log(entity)
C#
int entity = Function.Call<int>((Hash)0xCEF4C65DE502D367, // MAKE_PED_DROP_WEAPON
  API.PlayerPedId(), // Ped ped
  false, // BOOL p1
  0, // int attachPoint
  false, // BOOL p3
  false // BOOL p4
);
All WEAPON natives

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