setPedWalkingStyle | Multi Theft Auto: Wiki Skip to content

setPedWalkingStyle

Client-side
Server-side
Shared

Pair: getPedWalkingStyle

This page is incomplete! Help wanted!

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


Sets the walking style of a ped. A walking style consists of a set of animations that are used for walking, running etc.

Syntax

setPedWalkingStyle ( )

Code Examples

server

Changes the walking style of the player to Drunkman when the resource is started

function onClientResourceStart()
setPedWalkingStyle(localPlayer,126)
end
addEventHandler("onClientResourceStart",resourceRoot, onClientResourceStart)

See Also