Scripting/Server/Classes/Player/ClearWeapons
Removes all weapons.
Contents
Syntax
player.ClearWeapons()Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "clearweapons" )
{
player.ClearWeapons();
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- player.SetWeapon
- player.GetWeaponAmmoAtSlot
- player.SetAnim
- player.RemoveLimb
- player.RemoveFromVehicle
- player.Spawn
- player.RespawnAt
- player.ForceToSpawnScreen
- player.CheckFileHash
Section: Player
Categories: Server methods | Player