getPedWalkingStyle | Multi Theft Auto: Wiki Skip to content

getPedWalkingStyle

Client-side
Server-side
Shared

Pair: setPedWalkingStyle

This page is incomplete! Help wanted!

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


Returns the walking style ID of a ped. This ID determines the set of animations that is used for walking, running etc.

Syntax

getPedWalkingStyle ( )

Code Examples

server
addEventHandler("onClientResourceStart", resourceRoot, function()
local style = getPedWalkingStyle(localPlayer)
outputChatBox("Your walking style ID is " .. style)
end)

See Also