Ares Armory - Installation & Configuration Guide

Version: 1.5.0 Authors: KPG-TB, Roroleroh Framework Support: ESX, QB-Core, QBX Core


📋 Table of Contents

  • Installation

  • Dependencies

  • Item Configuration

  • Configuration Guide

  • Custom Notifications


🚀 Installation

Important Notice

⚠️ Do not rename the resource folder. The script must be named weaponGame to function properly.

Setup Steps

  1. Extract the resource to your server's resources folder

  2. Add items to your inventory system (see Item Configuration)

  3. Add to server.cfg:

    ensure weaponGame
  4. Restart your server

The script will automatically initialize its database tables on first startup if they don't exist.


📦 Dependencies

Required (Choose One Framework)

  • ESX (any version)

  • QB-Core (any version)

  • QBX Core (any version)

Optional

  • ox_lib - Enhanced UI features

  • ox_target - Target system integration

  • ox_inventory - Advanced inventory support

  • oxmysql - MySQL database wrapper

The script automatically detects your framework and adapts accordingly. No manual configuration needed.


🎒 Item Configuration

For ox_inventory

Add the following items to your ox_inventory/data/items.lua file:


⚙️ Configuration Guide

All configuration is done in the config.lua file. Below is a comprehensive breakdown of each section.

General Settings

Locale

Description: Sets the default language for the script. Options: 'en', 'fr', 'de', 'es' (add custom locales in locales/ folder) Default: 'en'


Crafting Table Locations

Description: Defines the physical locations of weapon crafting tables in the game world.

Formats:

  • Simple format: vec3(x, y, z) — Shows all weapons at this location

  • Advanced format: { coords = vec3(x, y, z), weapons = { 'ak47', 'beretta' } } — Only specific weapons

  • Explicit all: { coords = vec3(x, y, z), weapons = 'all' } — Shows all weapons (explicit)

Example:


Weapon Item Mode

Description: Determines whether crafted weapons are treated as inventory items. Options: true (weapons as items), false (weapons as native GTA weapons) Default: true Note: Required for ox_inventory and modern inventory systems.


Client Options

Target System

Parameter
Type
Description
Default

enabled

boolean

Enable target system integration

false

system

string

Target system to use ('ox_target' or 'qb-target')

'ox_target'

fallbackToPress

boolean

Fall back to press "E" if target not available

false

debug

boolean

Show debug boxes around target zones

false

options.distance

number

Interaction distance in meters

2.0

options.label

string

Label shown in target menu

'Use Weapon Table'

circle-exclamation

Table Interaction

Parameter
Type
Description
Default

InteractionDistance

number

How close player must be to interact (meters)

1.0

NotificationCooldown

number

Cooldown between notifications (milliseconds)

15000

CheckFrequency.Near

number

How often to check player proximity (milliseconds)

1000


Notifications

Parameter
Type
Description
Options

Enabled

boolean

Enable/disable notifications

true/false

type

string

Notification system to use

'default', 'ox', 'custom'

Debug

boolean

Show debug notifications in console

true/false

Notification Types:

  • 'default' — Native GTA notifications

  • 'ox' — ox_lib notifications (requires ox_lib)

  • 'custom' — User-defined system (see Custom Notifications)


Inventory & Progress

Parameter
Type
Description
Options

Inventory

string

Inventory system detection

'auto', 'ox'

Progress.type

string

Progress bar style

'bar', 'circle'

Recommended: Leave Inventory set to 'auto' for automatic framework detection. Note: Use 'circle' progress type for Qbox framework.


Leveling System

Parameter
Type
Description

Enabled

boolean

Enable/disable XP and leveling system

Levels

table

XP required for each level (key = level, value = XP needed)

MaxLevel

number

Maximum achievable level

DefaultWeaponXP

number

Default XP awarded for crafting a weapon

DefaultPartXP

number

Default XP awarded for crafting a part

How it works:

  • Players earn XP by crafting weapons and parts

  • Higher-level weapons require more XP to unlock

  • Individual weapons and parts can have custom XP values (see Weapons/Materials config)

Example progression:

  • Level 1 → 0 XP (start)

  • Level 2 → 100 XP

  • Level 5 → 850 XP

  • Level 10 → 5200 XP


Weapons Configuration

Parameter
Type
Description

jsConfig

string

JavaScript configuration identifier (don't change)

model

string

Native GTA weapon spawn name

parts

table

Array of part item names required to craft

display

string

Display name shown in UI

xp

number

XP awarded when weapon is crafted

level

number

Minimum level required to craft this weapon

Please see our Custom weapons page

Pre-configured weapons:

  • AK-47 — Level 1, 60 XP (4 parts)

  • Compact Rifle — Level 3, 45 XP (3 parts)

  • Beretta — Level 1, 40 XP (4 parts)

  • MS 500 Shotgun — Level 5, 75 XP (5 parts)


Materials Configuration

Parameter
Type
Description

display

string

Display name shown in crafting UI

craftTime

number

Time in seconds to craft this part

xp

number

XP awarded when part is crafted

costs

table

Materials required (item name = quantity)

Example material costs:

Crafting times by complexity:

  • Simple parts (triggers, grips): 4-5 seconds

  • Medium parts (receivers, slides): 8-10 seconds

  • Complex parts (barrels, stocks): 15-20 seconds


🔔 Custom Notifications

The script supports custom notification systems. Modify client/custom_notifications.lua to integrate your preferred notification resource.

File Location

File Structure

Integration Examples

Mythic Notify

okokNotify

QBCore Notify

ESX Notify

Debug Mode

Enable debug mode to test your custom notifications:

Return values:

  • return true — Notification handled by custom system

  • return false — Fall back to default notification system


📝 Quick Reference

Essential Configuration Checklist

  • ✅ Set crafting table locations in Config.Tables

  • ✅ Configure interaction distance in Config.Options.Table

  • ✅ Choose notification system in Config.Options.Notifications

  • ✅ Adjust leveling progression in Config.Leveling

  • ✅ Customize weapon XP and requirements

  • ✅ Set material costs for economic balance

Last updated

Was this helpful?