Skip to content

Multiple colors #22

@derl30n

Description

@derl30n

Version

v1.0.1

Description

Currently it's only possible that each equipment ID has only one color assigned.

References (optional)

No response

Additional info (optional)

With the introduction of a memory system this issue can be overcome with also the side benefit of not having to define any colors in the config.

This can introduce a lot of bugs and overhang in the code.
One solution may be to detect a character change by monitoring the ped hash.
The hash changes if the ped has beed edited in any way, e.g. any ped editor is opened or closed.
The removal/edit of props by code/scripts need to be looked into.

If there seems to be no conflicts, save every whitelisted component initially and on ped hash change.

CAVE: Equipments such as Duty Bels which may contain taser can have different colors for the taser model when the drawn model has no additional textures due to the taser no longer holstered.

One possible solution for the issue may be to create a fallback if the component variation is detected as invalid - a warning message should also be displayed in the console to inform the user about the mismatch.

Please confirm the following

  • I've checked for similar requests before opening this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    RequestNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions