takeWeapon | Multi Theft Auto: Wiki Skip to content

takeWeapon

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function removes a specified weapon or ammo from a certain player's inventory.

Syntax

takeWeapon ( )

Code Examples

server

This example removes teargas from player.

addCommandHandler( 'rtear',
function( thePlayer )
takeWeapon( thePlayer, 17 )
end
)