BeamMP-Server icon indicating copy to clipboard operation
BeamMP-Server copied to clipboard

[Feature Request] Ability to manipulate vehicle configs via lua before they are broadcasted

Open OfficialLambdax opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. Through previous events and the latest meeting it was found that it is usefull to make it possible for the server to manipulate vehicle configs. For example to automatically simplify vehicles.

It was discussed to develop a specific option within the server that can do these things automatically, based on some settings. Id like to propose a different solution to solve multiple issues with this one feature request.

Describe the solution you'd like Instead of having the server automatically do the job, let the scripters do that with a server side Script. Before the vehicle configs are broadcasted to the other clients, it is send either into the onVehicleSpawn or onVehicleEdit events. Here a lua script could by itself do the manipulations and return that new config.

This way a scripter can automatically simplify vehicles, or for example do something that is wished by the community for a long time by now, they could remove the vehicle vars (the vehicle tuning).

This gives the lua scripts the full control over this feature, server hosters wont be limited to the servers own implementation.

Describe alternatives you've considered None.

Additional context Server side automatically simplified vehicles can improve the performance dramatically. Which is very usefull for for example larger scale events. Yes the beammp lua mod can also do that, but only for the vanilla vehicles. But the server could modify the vehicle in any form or shape including into custom simplified vehicle versions.

OfficialLambdax avatar Jul 03 '23 18:07 OfficialLambdax

Further to this I think it would be good to have a system for the server to edit a vehicle config too, this can be broadcast as a normal edit to all players. - Just an idea

Starystars67 avatar Dec 11 '23 11:12 Starystars67