Skip to content

setVehicleComponentVisible shows the incorrect component #4687

@FileEX

Description

@FileEX

Describe the bug

setVehicleComponentVisible always shows the component in the _ok state regardless of the damage state.

Steps to reproduce

  1. Hit the vehicle against the wall to damage the hood.
  2. crun setVehicleComponentVisible(me.vehicle, 'bonnet_dummy', false)
  3. crun setVehicleComponentVisible(me.vehicle, 'bonnet_dummy', true) -- the normal hood is shown instead of the damaged one, even though the hood is destroyed.
  4. crun getVehicleDoorState(me.vehicle, 0) -- 2

Version

Multi Theft Auto v1.6-release-23690

Additional context

No response

Relevant log output

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.

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