MAKE_PED_DROP_WEAPON
Old name: _DROP_CURRENT_PED_WEAPON
Hash
0xCEF4C65DE502D367Runtime name
MakePedDropWeaponNamespaceWEAPON
SideClient
NameOfficial
Docs
Since build1207
Signature
Entity MAKE_PED_DROP_WEAPON(Ped ped, BOOL p1, int attachPoint, BOOL p3, BOOL p4);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
p1 | BOOL | — |
attachPoint | int | — |
p3 | BOOL | — |
p4 | BOOL | — |
Returns Entity
Description
Old name: _DROP_CURRENT_PED_WEAPON
Usage
local retval = MakePedDropWeapon(ped, p1, attachPoint, p3, p4)
-- always works, by hash
local retval = Citizen.InvokeNative(0xCEF4C65DE502D367, ped, p1, attachPoint, p3, p4, Citizen.ResultAsInteger())JavaScript and C#
const retval = MakePedDropWeapon(ped, p1, attachPoint, p3, p4);
// by hash
const retval = Citizen.invokeNative('0xCEF4C65DE502D367', ped, p1, attachPoint, p3, p4, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xCEF4C65DE502D367, ped, p1, attachPoint, p3, p4);Enums and flags
- eWeaponAttachPoint 33 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.