SetPlayerArmedWeapon
From SA-MP Wiki
SetPlayerArmedWeapon
Warning: This function was added in SA-MP version 0.3. It is not available in previous versions.
Arm a player with a certain weapon that they have.
(playerid, weaponid)
| playerid | The player to set the armed weapon. |
| weaponid | The weaponid. |
This function does not return a specific value.
this function does not work if the player is inside a vehicle.
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- GivePlayerWeapon: Give a player a weapon.
- GetPlayerWeapon: Check what weapon a player is currently holding.
