Jump to content

[Help] Is there any way to automate the player's movement?


Swagy

Recommended Posts

I've worked on it, it's a very difficult subject

In fact if you use setPedControlState, you'll have a lot of issue

Firstly, it'll depends on client's framerate because this function is client side also you might have sync issues

The best thing I could advise you is to freeze the player, then move him with setElementPosition every frame and during this process using setPedControlState to make him acts like if he was walking

Or you could synchronise the position of your bots with the server so they are synchronized

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