Everything is in config.lua. It stays editable when the resource is escrowed, as do sql/install.sql and README.md.
Office#
Config.Office = {
label = 'Licence Office',
ped = { model = 'a_f_y_business_02', coords = vec4(239.8326, -1380.5127, 32.7418, 138.1511) },
blip = { sprite = 487, colour = 0, scale = 0.75 },
useDistance = 6.0,
}
| Key | Default | What it does |
|---|---|---|
label |
'Licence Office' |
Name on the blip, the menu title and notifications. |
ped.model |
'a_f_y_business_02' |
Clerk model. |
ped.coords |
vec4(239.8326, -1380.5127, 32.7418, 138.1511) |
Where the clerk stands. Z is the ground height. |
blip |
sprite 487, colour 0, scale 0.75 |
Map blip. It is short range. |
useDistance |
6.0 |
The server rejects list, buy and replace from further away than this, in metres. |
Licences#
One row per licence:
{ key = 'driver', label = 'Driver Licence', store = 'meta', price = 250, card = 'driver_license', icon = 'car',
desc = 'Reissue after a suspension or a revoke. Every new resident starts with one.' },
| Key | What it does |
|---|---|
key |
The licence id used by the exports and stored in the database. Keep it under 32 characters. |
label |
Name shown to players. |
store |
'meta', 'hunting' or 'fishing'. See below. |
price |
Cost, paid from the bank. |
card |
Optional ox_inventory item handed over as the card. Leave it out for no card. |
icon |
Menu icon name. |
desc |
Description shown in the menu and the confirmation dialog. |
Default rows:
| Key | Store | Price | Card |
|---|---|---|---|
driver |
meta |
250 | driver_license |
weapon |
meta |
3500 | weaponlicense |
hunting |
hunting |
500 | none |
fishing |
fishing |
300 | none |
boat |
fishing |
1500 | none |
pilot |
meta |
25000 | none |
business |
meta |
20000 | none |
Stores#
| Store | Where the licence is kept |
|---|---|
meta |
The character's metadata.licences[key] in qbx_core. Works on a fresh install. |
hunting |
The hunter record in glitch-huntingJob, through its HasLicence and SetLicence exports. |
fishing |
The fishing licences table in glitch-fishingJob, through the same two exports, passing the citizen ID and the key. |
For hunting and fishing rows the licence is also copied into metadata.licences. This sync runs about 5 and 30 seconds after a character loads, because job records load a little later than the character.
Other settings#
| Key | Default | What it does |
|---|---|---|
Config.CardReplaceFee |
50 |
Fee for a replacement card while the licence is held. |
Config.PoliceRank |
6 |
Grade your MDT should require. The resource does not enforce it; it is returned by the PoliceRank export. |
Config.PoliceLabel |
'Police' |
Agency name used in player messages. |
Config.LogWebhook |
'jobs' |
glitch-admin log channel. Only used when glitch-admin is running. |
Config.LegendEvent |
'glitch-pauseMenu:legend' |
Event prefix used to report the blip name to a map legend resource. Set it to nil to turn this off. |
Config.Text |
see file | Every player-facing message. %s and %d are filled in by the script, so keep them in the same order. |
Stuck on a step?Ask in the Discord →