Jump to content

Not player controlled vehicles lag


Iwasawa

Recommended Posts

Im just wrote a remote control script for vehicles, i want it for another thing later, its synced, but im realized a big problem.

The car's ped control state synced everytime when a controller controls the vehicle (onClientKey) and its work perfectly, nearly zero lagg. But when it reaches higher speed its start to "jump back" just for a half second and idk what is this. Its possible to solve this zigzag somehow? I want a sync like the player's vehicles, nice smooth, but this lagging is annoying...

Link to comment

Peds cannot be properly synchronized as even though they are recognized as part of the modification, they're not researched well enough. All pedestrian movements and synchronization is done client-side for the best results usually. Make sure all functions are used client-side. Server-side communication and synchronization should be limited and should only happen once in a few seconds (this prevents the weird lag a little).

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