Configuration
| File | For |
|---|
config.lua | Account, weapon licence, target, ammunition, blip and shop locations |
config_server.lua | The Discord log |
locales/en.lua | The text players see |
config.lua
| Option | Default | What it does |
|---|
Config.Account | 'cash' | Account that pays: 'cash' or 'bank' |
Config.Ammo.fromWeaponPage | 'qbcore' | Ammo bought on a weapon's page: 'qbcore' gives an ammo box item, 'gta' loads it into the gun. ESX always loads |
Config.Target | 'auto' | 'auto' finds fusing-target, ox_target or qb-target; or a target resource's name; or false for the E prompt only. With a target, the E prompt is off |
Weapon licence
Config.License:
| Option | Default | What it does |
|---|
enabled | true | false: no licence needed for anything |
type | 'metadata' | 'metadata' (QBCore licences / esx_license) or 'item' |
name | 'weapon' | Licence name, for 'metadata' |
item | 'weaponlicense' | Item name, for 'item' |
sell | true | Sold at the weapons counter |
price | 25000 | Licence price |
Blip
Config.Blip:
| Option | Default | What it does |
|---|
enabled | true | Show blips |
sprite | 110 | Blip icon |
color | 1 | Blip color |
scale | 0.8 | Blip size |
label | 'Ammu-Nation' | Blip name |
Shop locations
Config.Locations has the 11 GTA Ammu-Nations. Each one has:
| Field | What it does |
|---|
label | Shop name |
blip | Where the blip sits |
clerk | Where the clerk stands and faces, vec4(x, y, z, heading) |
weapons | The gun counter, measured from the clerk (+y in front, +x to his left) |
armor | The armor counter, vec4(x, y, z, heading) |
{ label = 'Little Seoul',
blip = vec3(-658.00, -935.00, 21.82),
clerk = vec4(-661.96, -933.53, 21.83, 177.05),
weapons = vec3(0.00, 1.00, 0.00),
armor = vec4(-666.02, -939.04, 21.83, 262.87),
},
config_server.lua
Server only, never sent to players. Config.Logging sends every purchase to Discord. It stays off until a webhook URL is set.
| Option | Default | What it does |
|---|
enabled | true | Log purchases |
url | '' | Discord webhook URL |
username | 'Ammu-Nation' | Name the messages are posted under |
colour | 13836331 | Embed color |
locales/en.lua
Every string a player can see: counter names, prompts, purchase results and menu text. Change the text on the right of each line.