Getting Started
Configuration
Change the settings to fit your server.
All settings live in the config file inside the script folder. Every option is commented so you know what it does.
Editing the config#
- Open
resources/zolt_stashcreator/config.luain a code editor (VS Code is recommended). - Change the values you need. Keep the commas and brackets intact.
- Save the file and restart the script.
config.lua· lua
Config = {} Config.Inventory = 'qb-inventory' -- Options: 'ox_inventory' | 'qs-inventory' | 'ps-inventory' | 'qb-inventory' Config.Target = 'interact' -- Options: 'qb-target' | 'ox_target' | 'interact' (press E) Config.AdminDiscordIDs = { '325954485333655552', } Config.AdminGroups = { 'god', 'admin', 'superadmin' } Config.AdminCommand = 'stashcreator' Config.DefaultSlots = 50Config.DefaultWeight = 100000 Config.DefaultProp = 'prop_box_tea01a' Config.PropFreezeTime = 2000 Config.ShowMarker = falseConfig.MarkerType = 1Config.MarkerColor = { r = 100, g = 200, b = 255, a = 80 }Config.MarkerScale = { x = 0.4, y = 0.4, z = 0.4 }Config.InteractKey = 38 Config.InteractDist = 2.0 Config.TargetDistance = 2.0 Config.DiscordWebhook = 'webhook_here'Config.DiscordName = 'Zolt StashCreator'Config.DiscordAvatar = 'https://r2.fivemanage.com/ZRMm9l5prYE2MoPosXmrG/zoltlogo.png' Config.LogCreate = true Config.LogDelete = true Config.LogOpen = true Config.LogItemTake = true Config.LogItemPut = true Config.LogUnauthorized = true Config.DBTable = 'zolt_stashes' Config.Notify = function(src, msg, ntype) TriggerClientEvent('QBCore:Notify', src, msg, ntype, 4000)endApplying changes#
Restart just this script from the server console or txAdmin:
Server console· bash
restart zolt_stashcreatorWarning
If you see a Lua syntax error after editing, you've most likely removed a comma or a quote. Undo your last change and try again.