setPedUseNativeWalkingStyle
Shared
Makes a ped follow the current skin model's native motion group, or restores MTA's explicit walking-style path.
Syntax
bool setPedUseNativeWalkingStyle(ped thePed, bool enabled)Arguments
thePedpedTarget ped or player.
enabledboolWhether 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
SOURCECLuaPedDefs.cppClient/mods/deathmatch/logic/luadefs/CLuaPedDefs.cpp INTRODUCED / EXTENDED012f05529Read the commit and why the change was made
RELATED NEON APIS
Read the system guide → Continue exploring
← Back to the Neon Lua API · How Model-native walking styles works →