Jump to content

Problem with attached trailer


Spc

Recommended Posts

Posted

ITGqD3A.pngunknown.png?width=600&height=480

I have a bug with trailers (screenshot). On my player's camera the trailer looks normal, but everyone else can see the bugged trailer. Is it MTA bug or something?

  • Moderators
Posted

I would indeed consider that a MTA bug, (if the trailer is serverside and synchronization is enabled) What happens here is that the server for some reason doesn't assign a syncer(player) to the trailer. So no player tells the server where the trailer is located. And because of that, it is also not sending its location to the clients.

If the server did stream this location, the trailer might get stuck in the ground because the server doesn't know where the floor is located.

One of the main issue's with trailers is that they can't be driven.(afaik) Normally if a player enters one of the seats, the server clearly knows which player is responsible for streaming the vehicle position.(driver seat has priority)

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted

You can check distanation between trailer and trucker (if they linked) on client prerender. Normal is between 8 and 10. If not, you can detach and attach trailer (on client-side, of course)

spacer.png  rXthfx8.png

○  Wiki Profile  ○  GitHub  ○  YouTube  ○

Posted

What Im considering is, creating a client side trailer system and syncing that between players. Controller will be either the driver of the truck towing, or the closest player. Will need a lot of testing but should work out massively better then the system currently in place.

Wolf Inc Discord

Youtube channel
Github

  • Moderators
Posted (edited)

The same issue occurs sometimes with new spawned peds, except the re-sync happens eventually after some seconds. Might that be related?

(The problem might be located in the bandwidth reduction, it is the perfect place for that to happen in my opinion.)

 

 

Edited by IIYAMA

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

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