ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setPedWalkingStyle

Function

setPedWalkingStyle

ServerPedsIdentical to MTA:SA

Stores a ped's walking style as a San Andreas walk animation number (e.g. 54 default, 118 man, 121 gang member, 129 woman). In Trilogy Hub this is currently state for scripts returned by getPedWalkingStyle; the game does not change the way the ped walks based on it yet. Values outside 0-138 are rejected.

Syntax

bool setPedWalkingStyle(ped ped, int value)

Arguments

pedped
A player or an NPC.
valueint
Walking style number 0-138.

Returns

true on success.

Example

setPedWalkingStyle(player, 121)

Notes

State for scripts.

See also