Desaster Posted December 2, 2013 Share Posted December 2, 2013 hi I found this func getPedWalkingStyle but it's disabled hmmm so I wanted to ask how to get the walking style of a ped Link to comment
TAPL Posted December 2, 2013 Share Posted December 2, 2013 _setPedWalkingStyle = setPedWalkingStyle function setPedWalkingStyle(player, style) local bool = _setPedWalkingStyle(player, style) if bool then setElementData(player, "WalkingStyle", style) return bool end end function getPedWalkingStyle(player) if player and getElementType(player) == "player" then local style = getElementData(player, "WalkingStyle") if style and type(style) == "number" then return style else return false end else return false end end -- Example -- setPedWalkingStyle(player, 120) getPedWalkingStyle(player) --> 120 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now