Open
Description
engineRequestModel("vehicle")
gives you a new vehicle model ID. Logically this ID needs to be applied to an element using setElementModel. You may also want to use engineFreeModel when the element streams out to save memory at some point.
I've noticed an issue while testing my newmodels resource related to visible damage on the vehicle not staying.
Door & panel damage that you can obtain on a vehicle by damaging it yourself or using setVehicleDoorState
& setVehiclePanelState
resets after the vehicle's model is changed.
This is problematic and can strongly be considered a bug as it's some unintended behavior.
Serverside sync should fix this issue.
Version
r21135