TakeAllWeapons: Difference between revisions
Jump to navigation
Jump to search
m (Can also be used on Peds) |
(→Syntax: thePlayer -> thePed) |
||
Line 8: | Line 8: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*''' | *'''thePed''': A [[ped]] element referencing the specified ped | ||
===Returns=== | ===Returns=== |
Revision as of 23:56, 11 August 2014
This function removes every weapons from a specified ped, rendering it unarmed.
Syntax
bool takeAllWeapons ( ped thePed )
Required Arguments
- thePed: A ped element referencing the specified ped
Returns
Returns true if the function succeeded, false otherwise.
Example
This example removes all weapons from every player
takeAllWeapons ( getRootElement() ) --remove all the weapons outputChatBox ( "Weapons are not permitted!" ) --tell the players why they lost their weapons