player.giveWeapon

Description

Used to give a player a weapon based on a hash.

Check out the Weapon Table

Syntax

giveWeapon(weaponHash: number, ammo: number, equipNow: boolean): void;

Real World Example

// Combat shotgun.
// 9999 Ammo
// Equip immediately
player.giveWeapon(0x5a96ba4, 9999, true);

results matching ""

    No results matching ""