Jump to content

setPedControlState works just for the syncer


C0b0ll

Recommended Posts

Posted

Hello everybody,

I try to move a ped using setPedControlState.

My problem is that the ped is only moving correctly for the syncer client. For the others, the ped doesn't play any animation and he is teleported each 2 meters...

Here is my client code :

function startForward(mtaPed) 
    setPedControlState(mtaPed, "forwards", true) 
end 
addEvent("startForward", true) 
addEventHandler("startForward", getRootElement(), startForward) 

What is wrong ?

Thanks for your help :).

Posted

If you need the server to start the movement of ped for everyone, then yes, you need to trigger the event for everyone. MTA does not sync control states, and that's why server does not have ped control state functions.

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