๐Ÿ’ปInstallation Guide

Inventory Installation Guide

This page is dedicated to installation of our Inventory Redesign script. Follow steps listed below to start using pScripts Inventory Redesign on your server.

triangle-exclamation

Prerequisities

Before you begin, ensure you have:

  1. FiveM server with administrator access

  2. Access to your server's database

  3. File transfer capability (FTP or direct file access)

circle-exclamation

Step 1: Installing the dependencies

Our script requires 4 dependencies:

  1. ox_targetarrow-up-right [It can be disabled in next step]

Additionaly, we recommend you use MariaDBarrow-up-right as your Database Management System.


Step 2: Installing Inventory CFG

Paste code below into your server.cfg or create a new cfg named inventory.cfg and paste it into this file!

If you create new cfg named inventory.cfg, REMEMBER to add exec inventory.cfg into server.cfg

triangle-exclamation

Step 3: Import Old Data

If you used ox_inventory before, copy your items.lua, shops.lua, weapons.lua etc. from your old version and paste them into data folder! Same with item images!

REMEMBER to add these clothing items in your items.lua

chevron-rightClothing Itemshashtag

Step 4: Clothing Script Setup

circle-exclamation

esx_skin Setup

Option 1: Use attached file and replace it in script [ONLY FOR FRESH AND LATEST VERSION]

Replace this file with esx_skin/client/modules/menu.lua

file-download
4KB

Option 2: Follow guide below and do it by yourself

chevron-rightesx_skin Guidehashtag

We recommend using LATEST and FRESH version of esx_skin to avoid any issues and errors!

Add Clothing Events

  1. Open esx_skin/client/modules/menu.lua and find function Menu:cancel(data, menu)

  2. Paste this event TriggerEvent('p_itemclothes/client/updateClothes', Skin.last) like on screenshot below!

  1. Next find function Menu:Saveable(submitCb, cancelCb, restrict)

  2. Paste this event TriggerEvent('p_itemclothes/client/updateClothes', skin) like on screenshot below!


qb-clothing Setup

Option 1: Use attached file and replace it in script [ONLY FOR FRESH AND LATEST VERSION]

Replace this file with qb-clothing/client/main.lua

file-download
78KB

Option 2: Follow guide below and do it by yourself

chevron-rightqb-clothing Guidehashtag

We recommend using LATEST and FRESH version of qb-clothing to avoid any issues and errors!

Add Export to Get Data

  1. Go to qb-clothing/client/main.lua and paste this code on BOTTOM of file!

Add Clothing Events

  1. Find local function resetClothing(data) and add this code like on screenshot!

  1. Find local function SaveSkin() and add this code like on screenshot!


illenium-appearance Setup

Option 1: Use attached files and replace in script [ONLY FOR FRESH AND LATEST VERSION]

Replace this file with illenium-appearance/client/client.lua

file-download
26KB

Replace this file with illenium-appearance/client/outfits.lua

file-download
4KB

Replace this file with illenium-appearance/game/customization.lua

file-download
18KB

Replace this file with illenium-appearance/game/util.lua

file-download
14KB

Option 2: Follow guide below and do it by yourself

chevron-rightillenium-appearance Guidehashtag

Add Clothing Events

  1. Go to illenium-appearance/client/client.lua and find this below

  1. Paste this code like on screenshot below!

  1. Go to illenium-appearance/client/outfits.lua and find function LoadJobOutfit(oData)

  2. Paste this code like on screenshot below!

  1. Go to illenium-appearance/game/customization.lua and find

function client.exitPlayerCustomization(appearance)

  1. Paste this code like on screenshot below!

  1. Go to illenium-appearance/game/util.lua and find local function setPlayerAppearance(appearance)

  2. Paste this code like on screenshot below!

  1. Find local function setPedComponents(ped, components)

  2. Paste this code like on screenshot below!

  1. Find local function setPedProps(ped, props)

  2. Paste this code like on screenshot below!


crm-appearance Setup

triangle-exclamation
chevron-rightcrm-appearance Guidehashtag

Add Clothing Event

  1. Go to crm-appearance/crm-open/crm-client/crm-main.lua

  2. Find function crm_on_save(crm_type, crm_old, crm_new) and add code below like on screenshot


0r-clothing Setup

chevron-right0r-clothing Guidehashtag
  1. Go to 0r-clothing/shared/config.lua and add event below in all these functions like on screenshot


qs-appearance Setup

chevron-rightqs-appearance Guidehashtag
  1. Go to qs-appearance/client/custom/inventory and add ox_inventory.lua here

  2. Set Config.Inventory to ox_inventory

file-download
985B

17Mov_CharacterSystem Setup

chevron-right17Mov_CharacterSystem Guidehashtag
  1. Go to 17Mov_CharacterSystem/bridge/illenium.lua and paste code below on bottom of file


Step 5: Downloading the Script

  1. Download the script from your Keymasterarrow-up-right.

  2. Extract the p_itemclothes and ox_inventory to your resources.

Step 6: Configuration

  1. Open config.lua file in the Script folder

  2. Configure our script basing on your needs.

Step 7: P_Bridge Configuration

  1. Download and extract p_bridgearrow-up-right onto your server.

  2. Configure p_bridge and its funtions in config.lua

  3. Add the following line to your server.cfg BELOW your Framework

It's important to start in logical order to prevent any errors in your server console!

circle-exclamation
triangle-exclamation

Step 8: Start using our script

  1. Save all changes

  2. Restart / Start your FiveM server

Enjoy using our Inventory Redesign! ๐ŸŽ‰

Last updated