getPedFightingStyle | Multi Theft Auto: Wiki Skip to content

getPedFightingStyle

Client-side
Server-side
Shared

Pair: setPedFightingStyle

This page is incomplete! Help wanted!

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


Retrieves the fighting style a player/ped is currently using. Function also added client-side.

Syntax

getPedFightingStyle ( )

Code Examples

server

This will allow any player to check what fighting style they are currently using, by typing the 'getfightingstyle' command.

function getPlayerFightStyle ( thePlayer, commandName )
local playerstyle = getPedFightingStyle ( thePlayer ) -- store the fighting style in a variable
outputChatBox ( tostring(playerstyle), thePlayer ) -- output it to the player
end
addCommandHandler ( "getfightingstyle", getPlayerFightStyle )

See Also