Jump to content

Changing count seats


SkyGuard

Recommended Posts

9 minutes ago, SkyGuard said:

How can I replace a standard two-door car with a downloaded four-door car so that 4 people can fit in the car. Since, according to the standard, only two people get into the car (driver and passenger in front) ?

I personally don't think this is a very good idea because the game does cache the amount of passengers in various game structures (model info, vehicle struct, seat info structures). This could cause game stability issues, like what should happen if you replace a vehicle with four seats where two players sit on seat 3 and 4? Are you asking just hypothetically or because you tried?

Edited by The_GTA
Link to comment

Please take a look at the following MTA source code:

https://github.com/multitheftauto/mtasa-blue/blob/e11685cab4beb7958ab202261f9c9d9b4ce71e58/Server/mods/deathmatch/logic/CVehicleManager.cpp#L14

You see that the max passengers have to be known to the server so that it can synchronize the player entering and leaving vehicles. Since the server does not have access to the game files the MTA team has implemented it as a static table. If you were to change the seat count on the client-side then you still could not enter the vehicle because the server would never know about the real seat count.

Here be dragons if you change the model to a vehicle with less seats than what the server expects. It could severely cripple the game experience of your server users.

Please select a vehicle model with the same seat count instead. :) 

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