GivePlayerWeapon
From SA-MP Wiki
Give a player a weapon
(playerid, weaponid, ammo)
| playerid | The ID of the player to give the weapon to |
| weaponid | The ID of the weapon you want to give the player |
| ammo | How much ammo to give to the player |
| Returns | This function doesn't return a specific value |
GivePlayerWeapon(playerid, 26, 500); //Give playerid sawnoff shotgun with 500 ammo
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- SetPlayerArmedWeapon: Set a player's armed weapon.
- GetPlayerWeapon: Check what weapon a player is currently holding.
