Scripting/Squirrel/Functions/Player.SetWeapon

From Vice City Multiplayer
Revision as of 11:53, 13 February 2016 by Ultimatejugo (talk | contribs) (Created page with " == Syntax == <pre>player.SetWeapon( weaponID, Ammo );</pre> == Example == <pre>if (cmd == "gimmeaweapon") { player.SetWeapon( 24, 999 ); MessagePlayer("you recieved a free...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

Syntax

player.SetWeapon( weaponID, Ammo );


Example

if (cmd == "gimmeaweapon")
{
player.SetWeapon( 24, 999 );
MessagePlayer("you recieved a free m4!", player);
}