giveWeaponObjectToPed
GIVE_WEAPON_OBJECT_TO_PED0xB1FA61371AF7C4B7The GTA V native GIVE_WEAPON_OBJECT_TO_PED of the WEAPON namespace, as LS:MP client scripts call it: the global function giveWeaponObjectToPed, in JavaScript and in Lua.
giveWeaponObjectToPed(weaponObject: Object, ped: Ped): voidgiveWeaponObjectToPed(weaponObject: Object, ped: Ped)Usage
JavaScript
giveWeaponObjectToPed(weaponObject, ped);Lua
giveWeaponObjectToPed(weaponObject, ped)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
weaponObject | Object | number | integer |
ped | Ped | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Weapon WEAPON
- In the game
void GIVE_WEAPON_OBJECT_TO_PED(Object weaponObject, Ped ped)- Hash
0xB1FA61371AF7C4B7