Commands, exports & keys
Admin panel and commands
Section titled “Admin panel and commands”/slgun_admin opens the panel with every store: owner, status, account and stock. From it you also edit the
default furniture (what stores come with when bought, and the furniture of state stores) and the finish prices.
The store is the one you are in, or the one you name (gun_littleseoul, gun_pillbox, gun_cypress, gun_sandy,
gun_paleto, gun_hawick, gun_tataviam, gun_route68, gun_lamesa, gun_morningwood, gun_chumash).
| Command | What it does |
|---|---|
/slgun_admin |
Opens the admin panel |
/slgun_serie <serial> |
Looks up a weapon in the registry: weapon, buyer, store, cashier, price and date |
/slgun_seed [store] |
Places test furniture and stock |
/slgun_seedfull [store] |
Unlocks every upgrade, places the example layout and fills it to the top |
/slgun_fill [store] |
Fills a store without removing anything |
/slgun_restock [store] |
Starts a restock wave now (state stores) |
/slgun_clear [store] |
Removes all the furniture of a store |
/slgun_reset [store] |
Removes the owner and the furniture: the store goes back to its default state |
/slgun_wipe confirm |
Deletes all store data (owners, furniture, stock, boxes). Type confirm to run it |
/slgun_galeria |
Lists the range passes running (server console too) |
Commands are for your framework’s admins or anyone with the slgun.admin ace.
If your server has its own staff panel, it can show the stores with exports.sl_gunshop:AdminShops(src) and
exports.sl_gunshop:AdminCall(src, action, data) (server), and open this panel with
exports.sl_gunshop:OpenAdmin({ shop = id }) (client).
Exports (MDT, police, other scripts)
Section titled “Exports (MDT, police, other scripts)”Every firearm sold is saved in the registry (sl_gunshop_registry table) and sent to your MDT if there is one
(Config.Mdt). Your police scripts can also read it directly:
| Export (server) | What it returns |
|---|---|
LookupSerial(serial) |
The weapon with that serial: weapon, buyer, store, cashier, price, date and status |
ShopAudit(shopId, limit) |
The last weapons sold by a store |
WeaponsOf(citizenId, limit) |
The weapons bought by a player |
SetSerialStatus(serial, status) |
Marks a weapon as 'stolen' or back to 'active' |
local w = exports.sl_gunshop:LookupSerial('SLG-7KQ2MX')Also: GetOrdersInTransit, HoldOrder, CanRobOrder, RobOrder (deliveries that another script turns into a heist),
GetRegisterCash, GetSafeCash and IsOnCooldown (robberies).
| Key | Action |
|---|---|
| E | Use: ask to see a weapon, take a product, pay, open a door, use the computer, force a register… |
| G | Put back, or the second action (pay by card, leave a product on the counter…) |
| H | Hide the product in your hands, or take it out |
| J | Peel a security tag off |
| Q | Look closer at a low shelf |
| Backspace | Leave: the register, the 3D view, a minigame… |
Players can change every key in the game settings (Settings → Key Bindings → FiveM).