Skip to content

Door & panel states (damage) not syncing for vehicles with custom model IDs #2571

Open
@Fernando-A-Rocha

Description

@Fernando-A-Rocha

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions