PA Scripts
Scripts
  • Overview
  • Hookers
    • ๐Ÿ”ง Installation
    • ๐ŸŽฎ Gameplay & Usage
    • โš™ Configuration Details
  • Multiplayer Roof Running
    • ๐Ÿ”ง Installation
    • ๐Ÿ” Gameplay & Usage
    • โš™๏ธ Configuration Details
  • Crafting System
    • ๐Ÿ”ง Installation
    • ๐Ÿ” Usage
    • โš™๏ธ Configuration Details
  • Lockpick System
    • ๐Ÿ”ง Installation
    • ๐Ÿ” Usage
    • โš™๏ธ Configuration Details
  • Racing System
    • ๐Ÿ”ง Installation
    • ๐Ÿ” Usage
    • โš™๏ธ Configuration Details
  • Hacking System
    • ๐Ÿ”ง Installation
    • ๐Ÿ” Usage
    • โš™๏ธ Configuration Details
  • Money Laundering System
    • ๐Ÿ”ง Installation
    • ๐Ÿ” Usage
    • โš™๏ธ Configuration Options
  • Radial Menu
    • ๐Ÿ”ง Installation
    • ๐Ÿ” Usage
    • โš™๏ธ Configuration Options
  • Prop System
    • ๐Ÿ”ง Installation
    • ๐Ÿ” Usage
    • Configuration Details
  • Hq App + Art Asylum Heist
    • โš”๏ธGeneral information page
    • ๐Ÿง Installation
  • Inventory
    • Readme file
    • ๐Ÿง Installation
    • ๐ŸชถConfig Settings
  • Craft System
    • ๐Ÿ’ปGeneral features
    • ๐Ÿง Installation
    • ๐ŸชถConfig Settings
    • ๐ŸŸฆBlueprints
  • UI Pack
    • โš™๏ธSetting for Core
    • ๐ŸชถUsage examples
Powered by GitBook
On this page

Was this helpful?

  1. Inventory

Readme file

Readme file

PreviousInventoryNextInstallation

Last updated 10 months ago

Was this helpful?

Do not proceed to other pages without reading this one

Installation video for Ox. For Qb you will do it the same way, only you don't need to change es_extended and you will leave OldInventory empty.

DO NOT CHANGE THE DATA FOLDER DIRECTLY WITHOUT READING THE README FILE. THE SCRIPT WILL NOT WORK. READ THE README FILE AFTER EACH UPDATE.```

๐Ÿ“ฆ PA Inventory
This script is coded to run smoothly on any server framework when your inventories change.

๐Ÿ› ๏ธ Installation
1. Update Configuration File:
If your previous inventory is Ox, you need to write โ€œoxโ€ in Config.OldInventory. Otherwise you can leave this section blank.

2. You need to do the same for the lib and weapon script. Open the shared/config.lua files of both and set the inventory settings. Make sure you type the inventory name correctly.

2. Installation Requirements:
You need to install pickle_weaponthrowing-1.2 script for weapon throwing, pa-textui-2 script for fluent texts and pa-uipack script for the progress bar to work properly. You also need to install pa-lib-2 for the script to run smoothly. These scripts come as a gift with the PA Inventory script.

3. Updating the Data Folder:
If you have used Ox before, you need to replace the item and weapon files inside the data folder in this script with their own ox files to automatically convert your data, but the stashes.lua, vehicles.lua, crafting.lua, licenses.lua, evidence.lua and animations.lua file should remain completely empty. Check below how to add stashes, in the same way you can add and edit crafts from the configuration

๐Ÿš€ Updates
The script will be continuously updated and new features will continue to be added.

โ—๏ธ Important Notes
1. It is recommended not to restart the script while the server is active.

2. It is recommended to check the configuration file several times before running it. If you need help with the configuration, please make sure to ask respectfully.

3. If you are already using pa_inventory, you do not need to make any changes to your code to organize your inventory, but if you were not using pa_inventory before, you need to make the following changes.
๐Ÿ’กInformation


2. If you were using ox_inventory before, drag the ox_inventory file in files to your server, then replace the items.lua folder in the data folder with your old ox inventory and keep using it that way. 

3. If you were using qb-inventory before, drag the qb-inventory file in files to your server.

4. The phone sim system is not coded yet, because a custom coding system will be made according to customers' requests and the phones they use.

5. Also don't forget to set config settings like lib, inventory, throw, weapons in the scripts.

> Sample scripts

1. If you cannot make export settings, I will leave you 2 sample scripts, you can check them and check my export uses.

jim-consumables : https://dosya.co/ixb92iq4e8lz/jim-consumables.zip.html

jim-recycle : https://dosya.co/9dippe1ayl0g/jim-recycle.zip.html

qb-smallresources : https://dosya.co/ipg39fml5b5w/qb-smallresources.zip.html
If you are using qb and have not changed the magazine names in the config, 
you can add these to your shared table
    weapon_pistol_magazine          = { name = 'weapon_pistol_magazine', label = 'Pistol Magazine', weight = 1000, type = 'weapon', ammotype = 'AMMO_PISTOL', image = 'clip_attachment.png', unique = true, useable = false, description = 'Pistol Magazine' },
    weapon_pistol_mk2_magazine      = { name = 'weapon_pistol_mk2_magazine', label = 'Pistol Mk II Magazine', weight = 1000, type = 'weapon', ammotype = 'AMMO_PISTOL', image = 'clip_attachment.png', unique = true, useable = false, description = 'Pistol Mk II Magazine' },
    weapon_combatpistol_magazine    = { name = 'weapon_combatpistol_magazine', label = 'Combat Pistol Magazine', weight = 1000, type = 'weapon', ammotype = 'AMMO_PISTOL', image = 'clip_attachment.png', unique = true, useable = false, description = 'Combat Pistol Magazine' },
    weapon_appistol_magazine        = { name = 'weapon_appistol_magazine', label = 'AP Pistol Magazine', weight = 1000, type = 'weapon', ammotype = 'AMMO_PISTOL', image = 'clip_attachment.png', unique = true, useable = false, description = 'AP Pistol Magazine' },
    weapon_stungun_magazine         = { name = 'weapon_stungun_magazine', label = 'Taser Magazine', weight = 1000, type = 'weapon', ammotype = nil, image = 'clip_attachment.png', unique = true, useable = false, description = 'Taser Magazine' },
    weapon_pistol50_magazine        = { name = 'weapon_pistol50_magazine', label = 'Pistol .50 Magazine', weight = 1000, type = 'weapon', ammotype = 'AMMO_PISTOL', image = 'clip_attachment.png', unique = true, useable = false, description = 'Pistol .50 Magazine' },
    weapon_snspistol_magazine       = { name = 'weapon_snspistol_magazine', label = 'SNS Pistol Magazine', weight = 1000, type = 'weapon', ammotype = 'AMMO_PISTOL', image = 'clip_attachment.png', unique = true, useable = false, description = 'SNS Pistol Magazine' },
    weapon_heavypistol_magazine     = { name = 'weapon_heavypistol_magazine', label = 'Heavy Pistol Magazine', weight = 1000, type = 'weapon', ammotype = 'AMMO_PISTOL', image = 'clip_attachment.png', unique = true, useable = false, description = 'Heavy Pistol Magazine' },
    weapon_vintagepistol_magazine   = { name = 'weapon_vintagepistol_magazine', label = 'Vintage Pistol Magazine', weight = 1000, type = 'weapon', ammotype = 'AMMO_PISTOL', image = 'clip_attachment.png', unique = true, useable = false, description = 'Vintage Pistol Magazine' },
    weapon_flaregun_magazine        = { name = 'weapon_flaregun_magazine', label = 'Flare Gun Magazine', weight = 1000, type = 'weapon', ammotype = 'AMMO_FLARE', image = 'clip_attachment.png', unique = true, useable = false, description = 'Flare Gun Magazine' },
    weapon_marksmanpistol_magazine  = { name = 'weapon_marksmanpistol_magazine', label = 'Marksman Pistol Magazine', weight = 1000, type = 'weapon', ammotype = 'AMMO_PISTOL', image = 'clip_attachment.png', unique = true, useable = false, description = 'Marksman Pistol Magazine' },
    weapon_revolver_magazine        = { name = 'weapon_revolver_magazine', label = 'Revolver Magazine', weight = 1000, type = 'weapon', ammotype = 'AMMO_PISTOL', image = 'clip_attachment.png', unique = true, useable = false, description = 'Revolver Magazine' },
    weapon_revolver_mk2_magazine    = { name = 'weapon_revolver_mk2_magazine', label = 'Violence Magazine', weight = 1000, type = 'weapon', ammotype = 'AMMO_PISTOL', image = 'clip_attachment.png', unique = true, useable = false, description = 'da Violence Magazine' },
    weapon_doubleaction_magazine    = { name = 'weapon_doubleaction_magazine', label = 'Double Action Revolver Magazine', weight = 1000, type = 'weapon', ammotype = 'AMMO_PISTOL', image = 'clip_attachment.png', unique = true, useable = false, description = 'Double Action Revolver Magazine' },
    weapon_snspistol_mk2_magazine   = { name = 'weapon_snspistol_mk2_magazine', label = 'SNS Pistol Mk II Magazine', weight = 1000, type = 'weapon', ammotype = 'AMMO_PISTOL', image = 'clip_attachment.png', unique = true, useable = false, description = 'SNS Pistol MK2 Magazine' },
    weapon_raypistol_magazine       = { name = 'weapon_raypistol_magazine', label = 'Up-n-Atomizer Magazine', weight = 1000, type = 'weapon', ammotype = 'AMMO_PISTOL', image = 'clip_attachment.png', unique = true, useable = false, description = 'Weapon Raypistol Magazine' },
    weapon_ceramicpistol_magazine   = { name = 'weapon_ceramicpistol_magazine', label = 'Ceramic Pistol Magazine', weight = 1000, type = 'weapon', ammotype = 'AMMO_PISTOL', image = 'clip_attachment.png', unique = true, useable = false, description = 'Weapon Ceramicpistol Magazine' },
    weapon_navyrevolver_magazine    = { name = 'weapon_navyrevolver_magazine', label = 'Navy Revolver Magazine', weight = 1000, type = 'weapon', ammotype = 'AMMO_PISTOL', image = 'clip_attachment.png', unique = true, useable = false, description = 'Weapon Navyrevolver Magazine' },
    weapon_gadgetpistol_magazine    = { name = 'weapon_gadgetpistol_magazine', label = 'Perico Pistol Magazine', weight = 1000, type = 'weapon', ammotype = 'AMMO_PISTOL', image = 'clip_attachment.png', unique = true, useable = false, description = 'Weapon Gadgetpistol Magazine' },
    weapon_pistolxm3_magazine       = { name = 'weapon_pistolxm3_magazine', label = 'Pistol XM3 Magazine', weight = 1000, type = 'weapon', ammotype = 'AMMO_PISTOL', image = 'clip_attachment.png', unique = true, useable = false, description = 'Pistol XM3 Magazine' },

If you are using ox you can add this to your items table

['weapon_pistol_magazine'] = {
        label = 'Pistol Magazine',
        weight = 1000,
    },
['weapon_pistol_mk2_magazine'] = {
        label = 'Pistol Mk II Magazine',
        weight = 1000,
    },
['weapon_combatpistol_magazine'] = {
        label = 'Combat Pistol Magazine',
        weight = 1000,
    },
['weapon_appistol_magazine'] = {
        label = 'AP Pistol Magazine',
        weight = 1000,
    },
['weapon_stungun_magazine'] = {
        label = 'Taser Magazine',
        weight = 1000,
    },
['weapon_pistol50_magazine'] = {
        label = 'Pistol .50 Magazine',
        weight = 1000,
    },
['weapon_snspistol_magazine'] = {
        label = 'SNS Pistol Magazine',
        weight = 1000,
    },
['weapon_heavypistol_magazine'] = {
        label = 'Heavy Pistol Magazine',
        weight = 1000,
    },
['weapon_vintagepistol_magazine'] = {
        label = 'Vintage Pistol Magazine',
        weight = 1000,
    },
['weapon_flaregun_magazine'] = {
        label = 'Flare Gun Magazine',
        weight = 1000,
    },
['weapon_marksmanpistol_magazine'] = {
        label = 'Marksman Pistol Magazine',
        weight = 1000,
    },
['weapon_revolver_magazine'] = {
        label = 'Revolver Magazine',
        weight = 1000,
    },
['weapon_revolver_mk2_magazine'] = {
        label = 'Violence Magazine',
        weight = 1000,
    },
['weapon_doubleaction_magazine'] = {
        label = 'Double Action Revolver Magazine',
        weight = 1000,
    },
['weapon_snspistol_mk2_magazine'] = {
        label = 'SNS Pistol Mk II Magazine',
        weight = 1000,
    },
['weapon_raypistol_magazine'] = {
        label = 'Up-n-Atomizer Magazine',
        weight = 1000,
    },
['weapon_ceramicpistol_magazine'] = {
        label = 'Ceramic Pistol Magazine',
        weight = 1000,
    },
['weapon_navyrevolver_magazine'] = {
        label = 'Navy Revolver Magazine',
        weight = 1000,
    },
['weapon_gadgetpistol_magazine'] = {
        label = 'Perico Pistol Magazine',
        weight = 1000,
    },
['weapon_pistolxm3_magazine'] = {
        label = 'Pistol XM3 Magazine',
        weight = 1000,
    },

This is how you can add stash.This is just a simple example
 TriggerEvent('inventory:client:SetCurrentStash', 'launder-' .. menuId)
   TriggerServerEvent('inventory:server:OpenInventory', 'stash', 'launder-' .. menuId , {
        maxweight = 4000000,
   slots = 1})
https://drive.google.com/file/d/14LEUszPGPIOCtmyCLDf4oma_AYlSPpj1/view?usp=sharing