View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0009408||New Feature Requests||[All Projects] General||public||2016-10-02 14:39||2017-06-18 20:54|
|Summary||0009408: [Request] setVehicleMaxPassengers(int model, int number)|
As described it would be nice to (re)add this feature. It was once in MTA but didnt actually change the max passenger seat number, just the number the server "thinks" it has. Thus it caused desync and has been removed.
This could be very useful to make Andromada/Bus with a high passenger count instead of writing a complex script that uses attachements and whatnot.
|Tags||No tags attached.|
You can easy do it with scripting
I don't think this suggestion is always easy to script at all. Possible, yes, but not easy.
If you have a 2-door car which gets replaced by a 4-door one, you will have to manually teleport players inside the vehicle, essentially scripting your own car entering system to just use the 2 extra doors, which is a pretty complex task. Of course, if you have a 4-door car which gets replaced by a 2-door one, you only need to cancel the onVehicleStartEnter event to make the deleted doors unusable, and that is trivial indeed.
If this suggestion gets implemented some day, it will surely make things easier for both purposes: adding more passengers to vehicles which have few, and removing passengers for vehicles which have too many. So I look forward to that.
Until then, you can try to only replace cars which have room for lots of passengers, so reducing the passenger count is easy if needed. But you will eventually run out of Buses or 4-door cars to replace.