warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
RemovePlayerWeapon
warning
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
Description
Remove a specified weapon from a player.
Name | Description |
---|---|
playerid | The ID of the player whose weapon to remove. |
WEAPON:weaponid | The 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
Related Functions
- GivePlayerWeapon: Give a player a weapon.
- ResetPlayerWeapons: Removes all weapons from a player.
- SetPlayerArmedWeapon: Set a player's armed weapon.
- GetPlayerWeapon: Check what weapon a player is currently holding.