Skip to content

setPedUseNativeWalkingStyle

Shared

Make a ped or player automatically use the walk and run animations associated with its current skin, including after changing its model.

Syntax

bool setPedUseNativeWalkingStyle(ped thePed, bool enabled)

Arguments

thePedped

Target ped or player.

enabledbool

Whether model-native selection is active.

Returns

true when the policy was applied; false for an invalid element.

Ownership and lifecycle

The policy survives model changes, stream cycles, joins, and native ped recreation. Numeric setPedWalkingStyle calls are still last-writer-wins.

OOP aliases

  • ped:setUseNativeWalkingStyle(enabled)
  • ped.usingNativeWalkingStyle = enabled

Where this comes from

RELATED SA:O APIS

Continue exploring

Read the system guide →