Closed
Description
Is your feature request related to a problem? Please describe.
To create a vehicle with a custom ID (engineRequestModel), you need to create the vehicle on the server side, then change the model on the client side. Unfortunately, changing the model resets the handling of the vehicle, and it is not possible to change the handling through the client side, so handling cannot be set for a custom vehicle.
Describe the solution you'd like
Adding the ability to edit handling on the client side for vehicles created on the server side.
Describe alternatives you've considered
I used this solution which doesnt work for setVehicleHandling due to the described problem.
-- c-side
local v1,v2 = getVehicleVariant(source)
local handling = getVehicleHandling(source)
setElementModel(source,4542)
setVehicleVariant(source,v1,v2) -- return true, and I wish the setVehicleHandling function would work like this.
for i,v in pairs(handling) do
setVehicleHandling(source,i,v) -- return false, because the vehicle is created on the server side. :(
end