WeaponClient

giveWeaponObjectToPed

GIVE_WEAPON_OBJECT_TO_PED0xB1FA61371AF7C4B7

The 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.

SignatureJavaScript
giveWeaponObjectToPed(weaponObject: Object, ped: Ped): void
SignatureLua
giveWeaponObjectToPed(weaponObject: Object, ped: Ped)

Usage

JavaScript
giveWeaponObjectToPed(weaponObject, ped);
Lua
giveWeaponObjectToPed(weaponObject, ped)

Parameters

ParameterTypeJavaScriptLua
weaponObjectObjectnumberinteger
pedPednumberinteger

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

Open in the interactive natives reference