takeAllWeapons | Multi Theft Auto: Wiki Skip to content

takeAllWeapons

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 every weapons from a specified ped, rendering it unarmed.

Note

Weapons are removed when a ped dies by default. This means that it is only appropriate to use this function while a ped is alive.

Syntax

takeAllWeapons ( )

Code Examples

server

This example removes all weapons from every player

takeAllWeapons ( root ) --remove all the weapons
outputChatBox ( "Weapons are not permitted!" ) --tell the players why they lost their weapons