getPedArmor | Multi Theft Auto: Wiki Skip to content

getPedArmor

Client-side
Server-side
Shared

Pair: setPedArmor

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 returns the current armor of the specified ped.

Syntax

getPedArmor ( )

Code Examples

server

This example defines a "showarmor" console command that shows the player that executes it how much armor he has.

function showArmor ( )
local armor = getPedArmor ( localPlayer )
outputChatBox( "Your armor: " .. armor )
end
addCommandHandler ( "showarmor", showArmor )

See Also