The Ammu-Nation job, by m-Scripts
ARMED

Build it. Sell it. Test it.

Parts runs to the docks, blueprints from the gunsmith and a workbench that stamps a serial number. A supplies counter, bills with a commission and a shooting range open to everyone.

The supplies counter with weapons and ammo and a cash or bank total
The gunsmith selling blueprints to the staff
The workbench showing which weapons are ready to build
Charging a nearby customer with an amount and a reason
The customer screen with pay and refuse
Picking a weapon to try at the shooting range
01Supplies

Stock the shelves.
Cash or bank.

Staff buy weapons, ammo and attachments at the supplies counter, in two tabs. Pick the amounts, see the total and pay from cash or bank.

02The gunsmith

Buy the plans.
One per weapon.

The gunsmith sells blueprints to the staff, from $1,000 for a pistol to $9,000 for a sniper rifle. A blueprint is used up when the weapon is built.

03The workbench

Parts in.
A weapon out.

Weapon parts, metal and a blueprint make a new weapon in 8 seconds. The bench shows what you can build now and what you still miss.

04Billing

Charge the customer.
Keep your cut.

Pick a player near the counter, type the amount and the reason, and send the bill. The employee keeps 15% and the rest goes to the store.

05The customer

Pay or refuse.
60 seconds.

The customer gets their own screen with the amount and the reason. They pay from cash or bank, or refuse. A bill not paid in 60 seconds runs out.

06The range

Try before
you buy.

Anyone can step into one of 7 lanes and try a weapon for 30 seconds. It is never added to the inventory and it is taken away if you walk off.

From crate to counter

Three steps
to a new weapon.

Only the store's staff can do this, and only on duty. Every number below is a default you can change in config/main.lua.

01 · Parts run

The docks

The supplier sends you to a crate at the docks with a route on the map. Open it 5 times, 6 seconds each, for weapon parts and metal.

2 to 4 parts2 to 4 metalEach opening
02 · Blueprint

The gunsmith

Buy the blueprint of the weapon you want to build. Prices are in the config, one line per blueprint.

$1,000 to $9,000Used upStaff only
03 · Build

The workbench

Parts, metal and the blueprint become the weapon. With serial numbers on, every new weapon gets one, and on ox_inventory the name of who built it.

8 secondsSerial numberLogged
On the workbench

13 recipes.
Add your own.

Parts, metal and blueprint price for every weapon out of the box. The install folder has pictures for 42 blueprints, so adding a weapon is one line in Config.Recipes and one in Config.Blueprints.

Pistol10 parts · 5 metal
$1,000
Combat Pistol12 parts · 6 metal
$1,500
Heavy Pistol14 parts · 8 metal
$2,000
AP Pistol10 parts · 5 metal
$3,000
Revolver15 parts · 10 metal
$2,500
Micro SMG15 parts · 10 metal
$3,500
SMG18 parts · 12 metal
$4,000
Pump Shotgun18 parts · 12 metal
$3,000
Compact Rifle20 parts · 15 metal
$5,000
Assault Rifle20 parts · 15 metal
$6,000
Carbine Rifle20 parts · 15 metal
$6,000
Advanced Rifle20 parts · 15 metal
$7,000
Sniper Rifle50 parts · 25 metal
$9,000
+29

More blueprint pictures ready in install/images.

0Weapons to build
0Blueprint pictures included
0Items at the supplies counter
0Lanes at the range
0% of every bill to the employee
Everything in the box

A real gun store.
Not a menu.

Parts runs

The supplier sends you to a crate at the docks, with a route on the map. Open it 5 times per run.

Supplier NPC

Blueprints

The gunsmith NPC sells blueprints to the staff. Each one is used up by the weapon it makes.

Gunsmith NPC

Workbench

Shows every recipe, what you carry and which weapons are ready to build right now.

8 second build

Serial numbers

Every built weapon gets a random serial. On ox_inventory it also keeps the name of who built it.

Config.SerialNumbers

13 recipes

Pistols, SMGs, a shotgun, rifles and a sniper rifle, each with its own parts and metal.

Config.Recipes

42 blueprint pictures

Pictures for 42 blueprints in install/images, so new recipes look right in the inventory.

Install

Supplies counter

Two tabs: Weapons and Ammo, and Attachments. Prices for every item are in the config.

Staff only

Cash or bank

Pay for supplies and blueprints from cash or bank. Up to 50 of one item per order.

Checkout

Billing

Charge a player within 6 meters of you, with an amount and a reason, from the billing point.

Counter

Pay or refuse

The customer gets their own screen. A bill they leave open runs out after 60 seconds.

Customer

Commission

The employee who charged the bill gets 15% in the bank. The rest goes to the store.

Config.Commission

Society money

The store's share goes to its society account in Renewed-Banking, qb-banking, qb-management or esx_addonaccount.

Config.Society

Shooting range

Open to every player, not only the staff. 7 lanes at the Cypress Flats store.

Public

30 second tests

The test weapon is never added to the inventory. It goes away when time is up or you walk 6 meters off.

Range

Range cooldown

60 seconds between two tests per player, so the lanes are not a free armory.

Config.Range

5 range weapons

Pistol, SMG, pump shotgun, assault rifle and sniper rifle out of the box. Change the list in the config.

Config.Range

Job stash

A shared stash for the staff, 60 slots and 300 kg by default.

Config.Stash

Duty point

Clock in and out at the store. Work actions need the job and being on duty.

Staff

Checked on the server

The job, duty, where you stand, your parts, the blueprint, the money and the customer are all checked by the server.

Secure

No speed hacks

A build or a crate opening that finishes too fast is refused by the server.

Timing

Ready on install

The Cypress Flats store comes set up with its blip, points, NPCs and lanes. Every coordinate is in the config.

Config.Store

Discord logs

Purchases, built weapons with their serial and paid bills go to one webhook.

Webhook

Your colour

Change the accent colour of every screen with one line in the config.

Config.Accent

English and Portuguese

Both languages included. Copy a locale file to add your own.

Locales
Straight answers

What you get.
What you need.

Included

  • The script with its own screens, in English and Portuguese
  • The Cypress Flats Ammu-Nation set up: blip, duty, stash, supplies, workbench, billing, 2 NPCs and 7 range lanes
  • 13 recipes and their blueprints, ready to use
  • Item entries for ox_inventory and pictures for 42 blueprints, weapon parts and metal
  • A job example for Qbox and QBCore and a Discord webhook

Good to know

  • Needs ox_lib and ox_target or qb-target. No database tables
  • Create the ammunation job, or point Config.Job to your own
  • Add the items and copy the pictures to your inventory before you start
  • Weapon and ammo names follow ox_inventory. On qb-inventory weapon names are turned to lower case for you
  • The range is open to all players. Everything else needs the job
Plugs into your server

Your stack.
Already supported.

Framework, inventory and target are found on their own when the server starts. Or set each one by hand in the config.

Framework

QboxQBCoreESX

Inventory

ox_inventoryqb-inventoryps-inventoryESX

Target

ox_targetqb-target

Society

Renewed-Bankingqb-bankingqb-managementesx_addonaccount

Needs

ox_lib

For server owners

A new weapon.
Two lines.

-- config/main.lua: add a recipe and its blueprint price
Config.Recipes = {
    { weapon = 'WEAPON_PISTOL', blueprint = 'bppistol', pieces = 10, metal = 5 },
    { weapon = 'WEAPON_SMG',    blueprint = 'bpsmg',    pieces = 18, metal = 12 },
}
Config.Blueprints = { bppistol = 1000, bpsmg = 4000 }

-- the employee's cut of every bill, in %
Config.Commission = 15
FAQ

Before you buy.

Can I add more weapons?

Yes. Add a line to Config.Recipes and a price to Config.Blueprints. The install folder already has pictures for 42 blueprints.

Can players get free weapons from the range?

No. The test weapon is only held for the test and is never added to the inventory. The server checks the lane and the cooldown before a test starts.

Who gets the money from a bill?

The employee who sent it gets the commission in the bank, 15% by default. The rest goes to the society account set in Config.Society.

Does it work on ESX?

Yes. Framework, inventory and target are found on their own on Qbox, QBCore and ESX. On ESX the store's share goes to esx_addonaccount.

Can I move the store?

Yes. Every point, the NPCs, the crate at the docks and the range lanes are coordinates in config/main.lua.

Do I need a database?

No. The script makes no tables. The stash uses your inventory's own stash system.

OPENTHE RANGE.

Available now for 18.45 EUR.

Buy Ammunation