Setting up clothing / EUP

Another element of the resource is the ability to setup holstered and unholstered versions of clothing, allowing the resource to automatically switch between the two depending on whether the player is using their weapon.

This part of the resource is optional apart from the main element being the Weapon Lanyard. To use this part of the resource, you should ensure you have the appropriate EUP/clothing to accompany it, such as a holstered and unholstered version of a belt.

To begin, open the config.lua file and navigate to the holsters = { section.

holsters = {
    {
        holstered = 130,
        unholstered = 129,
        componentId = 8
    },
}

Each entry should be added in brackets, for example this is one entry:

{
    holstered = 130,
    unholstered = 129,
    componentId = 8
},

Each entry should be separated with a comma.

The holstered line is the clothing/EUP ID of the holstered variant. The unholstered line is the clothing/EUP ID of the unholstered variant.

The component ID is the component ID of the EUP, often known as categories such as Shirt/Accessories or Bags/Parachutes. For a full list of component ID's, see here found in the FiveM documentation.

After setting this up, whenever a player is wearing the holstered version you previously setup and then draws a pistol based weapon, it will switch to the unholstered version. Once they put this away, it will switch back. Everything is automatic with no commands required!

Last updated