Ares-studio Documentation
  • Welcome
  • Ares Armory
    • ⭐Getting started
    • 🎨 Script Customization Guide
    • πŸ›ƒCustom weapon
Powered by GitBook
On this page
  • πŸ”§ Script Installation Guide
  • πŸ› οΈ Installation Instructions
  • πŸ™‹ Need Help?
  1. Ares Armory

Getting started

πŸ”§ Script Installation Guide


πŸ› οΈ Installation Instructions

πŸ”· ESX Installation

Collez les lignes ci-dessous dans votre base de donnΓ©es afin d'ajouter les items nΓ©cessaires au fonctionnement du script.

Paste the following lines into your database to add the required items for the script to function properly.

-- Base materials
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
    ('plastic', 'Plastic', 1, 0, 1),
    ('metal_scrap', 'Metal Scrap', 1, 0, 1);

-- AK-47 Parts
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
    ('ak47part1', 'AK-47 Top Cover', 1, 0, 1),
    ('ak47part2', 'Receiver', 1, 0, 1),
    ('ak47part3', 'AK-47 Buttstock', 1, 0, 1),
    ('ak47part4', 'AK-47 Barrel', 1, 0, 1);

-- Compact Rifle (AKU) Parts
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
    ('akupart1', 'Compact Rifle Stock | Top Cover', 1, 0, 1),
    ('akupart2', 'Compact Rifle Stock | Receiver', 1, 0, 1),
    ('akupart3', 'Compact Rifle Stock | Barrel', 1, 0, 1);

-- Beretta Parts
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
    ('berettapart1', 'Beretta Barrel', 1, 0, 1),
    ('berettapart2', 'Beretta Trigger', 1, 0, 1),
    ('berettapart3', 'Beretta Receiver', 1, 0, 1),
    ('berettapart4', 'Beretta Slide', 1, 0, 1);

-- MS 500 Parts
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
    ('ms500part1', 'MS 500 Barrel', 1, 0, 1),
    ('ms500part2', 'MS 500 Slide', 1, 0, 1),
    ('ms500part3', 'MS 500 Grip', 1, 0, 1),
    ('ms500part4', 'MS 500 Buttstock', 1, 0, 1),
    ('ms500part5', 'MS 500 Receiver', 1, 0, 1);

🟒 QB-Core Installation

  1. Dans fxmanifest.lua, changez le framework de esx Γ  qb.

  2. Modifiez /client/config_client.lua : Framework = 'esx' ➝ Framework = 'qb'.

  3. Ajoutez les items dans [qb]/qb-core/shared/items.lua.

  4. Uploadez les images dans [qb]/qb-inventory/html/images.

  5. In fxmanifest.lua, change the framework from esx to qb.

  6. Edit /client/config_client.lua: Framework = 'esx' ➝ Framework = 'qb'.

  7. Add the items to [qb]/qb-core/shared/items.lua.

  8. Upload item images to [qb]/qb-inventory/html/images.

-- Example item format:
metal_scrap = {
  name = 'metal_scrap',
  label = 'Metal Scrap',
  weight = 100,
  type = 'item',
  image = 'metal_scrap.png',
  unique = false,
  useable = false,
  description = 'Scraps of metal that can be used for crafting'
},
plastic = {
  name = 'plastic',
  label = 'Plastic',
  weight = 100,
  type = 'item',
  image = 'plastic.png',
  unique = false,
  useable = false,
  description = 'Bits of plastic useful for making stuff'
},
-- Add the rest of the parts following the same structure

βš™οΈ Configuration

Dans le fichier /server/config.lua, vous pouvez configurer la position des tables et personnaliser la langue.

In /server/config.lua, you can configure the table positions and customize the language.

Config.Tables = {
    vec3(2430.804443, 3158.096680, 48.741455),
}

πŸ™‹ Need Help?

Thanks for your support! If you have any questions or run into issues, don't hesitate to contact us πŸ’¬

PreviousWelcomeNext🎨 Script Customization Guide

Last updated 1 month ago

⭐