Jump to content

[HELP] setPedWalkingStyle


Foster

Recommended Posts

function walkstyle(thePlayer)
	setPedWalkingStyle(localPlayer,128) 
end

function walk ( thePlayer )
elseif isObjectInACLGroup("user."..walk, aclGetGroup("Console")) then
    walkstyle(thePlayer)
end
end
addCommandHandler("walk", walk)

I couldn't fix it. How can i fix this code.

Link to comment
  • Moderators
-- SERVER SIDE SCRIPT

function walkstyle(thePlayer)
	setPedWalkingStyle(thePlayer, 128) 
end

function walk ( thePlayer )
  if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup ( "Console" ) ) then
      walkstyle(thePlayer)
  end
end
addCommandHandler("walk", walk)

 

Edited by Patrick2562
  • Thanks 1
Link to comment
1 hour ago, Dimos7 said:

is that script runnuing at server side?

Yes.

1 hour ago, Patrick2562 said:

-- SERVER SIDE SCRIPT

function walkstyle(thePlayer)
	setPedWalkingStyle(thePlayer, 128) 
end

function walk ( thePlayer )
  if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup ( "Console" ) ) then
      walkstyle(thePlayer)
  end
end
addCommandHandler("walk", walk)

 

Thank you! :)

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...