Jump to content

a disabled function


Desaster

Recommended Posts

_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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...