Aller au contenu principal

RemovePlayerWeapon

attention

La fonctionnalité de type fonction a été ajoutée dans la version omp v1.1.0.2612 et ne fonctionne pas avec les versions antérieures !

Description​

Remove a specified weapon from a player.

NameDescription
playeridThe ID of the player whose weapon to remove.
WEAPON:weaponidThe ID of the weapon to remove.

Returns​

true - The function was executed successfully.

false - The function failed to execute. This means the player is not connected.

Examples​

RemovePlayerWeapon(playerid, WEAPON_DEAGLE); // Remove the Desert-Eagle from the player