Skip to content

Holsters #24

@Tommbrwn4

Description

@Tommbrwn4

Version

v1.0.1

Describe the bug

I added the holster with the correct texture on it as described in the read.me and when I holster/unholster it swaps the texture from black(texture 1) to the camo (texture 3) and it swaps back and forth between the camo. I don't understand why it is doing this. On another one I made it swaps between two different textures when I holster/unholster my weapon. I noticed that when I have more than one texture in the config, like texture 1,2,3,4 it will always swap it to the last one. So if I have 3 itll swap it to the 3rd texture or if I have 4 itll swap it to the 4th texture.

Expected behavior

I expect it to retain the texture that I assigned it.

Steps to reproduce

I will link some lines of the config;
registerEquipment(REGISTERED_PEDS.mp_m_freemode_01, COMPONENTS.teef, REGISTERED_WPNS.weapon_combatpistol, 194, 193, 0, 0)
registerEquipment(REGISTERED_PEDS.mp_m_freemode_01, COMPONENTS.teef, REGISTERED_WPNS.weapon_combatpistol, 194, 193, 1, 1)
registerEquipment(REGISTERED_PEDS.mp_m_freemode_01, COMPONENTS.teef, REGISTERED_WPNS.weapon_combatpistol, 194, 193, 2, 2)
registerEquipment(REGISTERED_PEDS.mp_m_freemode_01, COMPONENTS.teef, REGISTERED_WPNS.weapon_combatpistol, 194, 193, 3, 3)
registerEquipment(REGISTERED_PEDS.mp_m_freemode_01, COMPONENTS.teef, REGISTERED_WPNS.weapon_combatpistol, 194, 193, 4, 4)

References (optional)

No response

Additional info (optional)

No response

Please confirm the following

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions