getPedWalkingStyle | Multi Theft Auto: Wiki Skip to content

getPedWalkingStyle

Client-side
Server-side
Shared

Pair: setPedWalkingStyle

Manual Review Required

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.

OOP Syntax Help! I don't understand this!

  • Method:ped:getWalkingStyle(...)
  • Variable: .walkingStyle

Syntax

int getPedWalkingStyle ( ped thePed )
Required Arguments
  • thePed: the ped whose walking style to retrieve.

Returns

  • int: value

Returns the walking style ID if successful, false otherwise. The possible walking styles are as follows:

Code Examples

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

See Also