Configuration ​
The core settings are in shared/config.lua. Five more files in shared/config/ load right after it:
| File | Keys |
|---|---|
shared/config/spawns.lua |
Config.Spawns, Config.JobSpawns, Config.Hospital |
shared/config/map.lua |
Config.Map |
shared/config/starter.lua |
Config.Starter, Config.IdCard, Config.DefaultOutfits, Config.Tattoos |
shared/config/blacklist.lua |
Config.Blacklist, Config.TattooStrict |
shared/config/names.lua |
Config.NameBlocklist |
All of them are shared (client and server), so keep secrets out of them. The webhook goes in server.cfg
(Installation).
General ​
| Option | Default | Description |
|---|---|---|
Config.Framework |
'auto' |
'qbx', 'qb', 'esx', 'standalone', or auto-detect (qbx_core → qb-core → es_extended → standalone) |
Config.Locale |
'en' |
Server language ('en', 'de') for server messages and the default UI language. Players can switch the UI language in the settings |
Config.Debug |
false |
Debug output: bridge selection, session state changes, imports, log lines |
Config.AutoCreateTables |
true |
Run the statements of sql/np_character.sql at start |
Config.Payments |
'auto' |
Store and rename fees through np_payments: 'auto' while np_payments runs, true required, false never. See Stores → np_payments |
Config.BucketBase |
10000 |
While in select, creator or spawn, a player sits in routing bucket BucketBase + server id (population off). Back to bucket 0 on spawn |
Slots, deletes, renames ​
Config.Slots = {
default = 3,
max = 5,
lockedReason = 'Supporter rank or 500 h played', -- nil = generated from the rules
permissions = { ['np_character.slots.4'] = 4, ['np_character.slots.5'] = 5 }, -- np_admin node -> unlocked slots
playtimeUnlock = { hours = 500, slots = 5 }, -- false to disable (sum over all characters)
}
Config.DeleteGraceDays = 7
Config.Rename = { enabled = true, cost = 5000, account = 'bank' }
Config.Rejoin = { minutes = 10 }
| Option | Description |
|---|---|
Slots.default |
Usable slots for everyone. A per-license database override (setSlots, staff panel) replaces it |
Slots.max |
Hard cap. Slots between the unlocked count and max are shown locked |
Slots.lockedReason |
Text on locked slots. nil builds it from the rules ("Supporter rank or 500 h played") |
Slots.permissions |
[node] = slots: np_admin permission nodes (Permissions). The highest granted value wins |
Slots.playtimeUnlock |
{ hours, slots }: playtime summed over all characters of the license, deleted ones included. false disables it |
DeleteGraceDays |
Soft-deleted characters can be restored by staff for this many days, then they are purged (checked at start and every hour) |
Rename.enabled |
Players can request a name change from the select screen |
Rename.cost / Rename.account |
Charged once staff applied the request, on the next spawn (or right away if the character is playing). Staff-chosen renames are free. With np_payments the fee goes through its Charge export (no sheet, the player is spawning) and shows in the player's receipts |
Rejoin.minutes |
A crash or timeout within this window forces a spawn at the last location |
See Select & spawn → Slots for how the unlocked count is computed.
Identity and names ​
Config.Names = { min = 2, max = 16, pattern = "^[%a][%a%s%-']*$", unique = true, capitalize = true }
Config.Identity = {
minAge = 18, maxAge = 90,
heightMin = 150, heightMax = 200, allowHeight = true,
backstoryMax = 1000,
nationalities = { 'American', 'Canadian', 'Mexican', … }, -- 33 entries
}
Config.GameYear = nil
| Option | Description |
|---|---|
Names.min / max |
Length per name part (UTF-8 characters) |
Names.pattern |
Lua pattern per name part. %a is ASCII only, add accented letters if you need them |
Names.unique |
First + last name must be unique (np_character rows and the framework's rows) |
Names.capitalize |
Upper-case the first letter of each part |
Identity.minAge / maxAge |
Allowed age, computed from the date of birth |
Identity.heightMin / heightMax / allowHeight |
Height field in cm. GTA has no ped scale native: the height is stored only |
Identity.backstoryMax |
Max length of the optional backstory (visible to staff) |
Identity.nationalities |
The nationality list. An empty list accepts anything |
GameYear |
Year used for ages. nil = the real year |
Config.NameBlocklist (shared/config/names.lua) is checked on create and rename, case-insensitive:
Config.NameBlocklist = {
words = { 'admin', 'moderator', 'staff', 'test', 'null', … }, -- a first or last name equal to one of these
fullNames = { 'john doe', 'franklin clinton', 'elon musk', … }, -- reserved 'first last' combinations
patterns = { '(%a)%1%1', 'xx+x' }, -- Lua patterns on the lowercased 'first last'
}
Creator lists ​
| Option | Default | Description |
|---|---|---|
Config.Walkstyles |
13 entries (move_m@confident …) |
{ id = clipset, label }. Played on the ped while picking |
Config.Voices |
7 entries | { id, label } for SetAmbientVoiceName |
Config.PedModels |
{ list = { 'a_m_y_hipster_01', … } } |
Non-freemode models, only for players with the np_character.peds node. Freemode features are off for peds |
Config.Parents |
GTA parents (fathers 0–20 + 42–44, mothers 21–41 + 45) | { fathers = { { id, name } }, mothers = { … } } for the heritage step |
Config.HairColors |
64 '#hex' |
Approximate sRGB of GTA hair colour indices 0–63 |
Config.MakeupColors |
64 '#hex' |
Same for makeup, lipstick and blush |
Config.Tattoos |
14 curated designs | { name, label, zone, collection, hashMale, hashFemale }. '' when a design doesn't exist for that model |
Config.TattooStrict |
false |
true = only Config.Tattoos entries can be saved; otherwise any well-formed overlay |
Creator, arrival and scenes ​
Config.Steps = { 'identity', 'heritage', 'face', 'hair', 'clothing', 'summary' }
Config.ArmsForTop = {
m = { [0] = 0, [15] = 15 }, -- [top drawable] = arms drawable | { arms drawable, texture }
f = { [15] = 15 },
}
Config.Arrival = {
default = 'lsia',
options = { 'none', 'lsia' },
labels = { none = { label = 'Skip', icon = 'forward' }, lsia = { label = 'LSIA arrival', icon = 'plane-arrival' } },
}
Config.SelectScene = {
coords = vec4(-1037.8, -2737.6, 20.17, 330.0), -- LSIA terminal
cam = { offset = vec3(0.0, 2.6, 0.6), fov = 40.0 },
time = { 14, 30 },
weather = 'CLEAR',
anims = {
{ dict = 'anim@heists@heist_corona@single_team', clip = 'single_team_loop_boss' },
{ dict = 'amb@world_human_hang_out_street@male_b@idle_a', clip = 'idle_b' },
{ dict = 'anim@amb@nightclub@peds@', clip = 'rcmme_amanda1_stand_loop_cop' },
},
}
Config.CreatorScene = { coords = vec4(402.9, -996.6, -99.0, 180.0), light = true } -- interior studio
| Option | Description |
|---|---|
Steps |
Creator steps in order. Store mode uses its own subsets (Stores) |
ArmsForTop |
Arms auto-match per freemode gender: after a top (component 11) change, the arms (component 3) are set from this map. Tops without an entry keep the current arms. Fill it for your clothing packs |
Arrival |
Arrival options on the summary. 'none' fades in at the spawn, 'lsia' plays the scripted airport camera |
SelectScene |
Where the preview peds stand, the camera offset and FOV, the clock and weather shown in select. anims is a list picked per slot and / or a map keyed by job name (plus default) |
CreatorScene |
Where the creator ped stands. light = false starts with the studio light off |
Without SelectScene.anims, the preview ped plays a job idle: cop idles for police, a clipboard for ambulance, hanging
out for mechanic, otherwise a standing loop.
Config.JobStyles gives jobs an icon and tint on slot cards, the info panel and job spawns. Jobs without an entry get
the grey user tile:
Config.JobStyles = {
police = { icon = 'shield-halved', tint = 'blue' },
sheriff = { icon = 'star', tint = 'olive' },
ambulance = { icon = 'truck-medical', tint = 'red' },
mechanic = { icon = 'wrench', tint = 'orange' },
taxi = { icon = 'taxi', tint = 'orange' },
realestate = { icon = 'house', tint = 'lilac' },
unemployed = { icon = 'user', tint = 'neutral' },
}
Spawns ​
shared/config/spawns.lua. Coordinates are vec4(x, y, z, heading).
Config.Spawns = { -- public: everyone can pick them
{ id = 'lsia', label = 'Los Santos Airport', sublabel = 'Arrivals hall', icon = 'plane', coords = vec4(-1042.3, -2745.6, 21.36, 330.0) },
{ id = 'legion', label = 'Legion Square', sublabel = 'Downtown', icon = 'tree-city', coords = vec4(195.2, -933.8, 30.69, 144.5) },
-- pillbox, sandy, paleto
}
Config.JobSpawns = { -- keyed by framework job name
police = {
{ id = 'mrpd', label = 'Mission Row PD', sublabel = 'Locker room', coords = vec4(461.4, -998.6, 30.69, 90.0), duty = true },
},
ambulance = {
{ id = 'pillbox_ems', label = 'Pillbox Medical', sublabel = 'Staff room', coords = vec4(311.2, -593.0, 43.28, 340.0), duty = true },
},
}
Config.Hospital = { label = 'Pillbox Hill Medical', sublabel = 'Recovery ward', coords = vec4(307.7, -595.3, 43.28, 340.0), selectable = false }
duty = true shows the on-duty switch on a job spawn. The hospital is the forced spawn for downed characters;
selectable = true also lists it in the picker. See Select & spawn → Spawn picker.
Spawns on Cayo Perico or a map mod such as Roxwood are added like any other spawn. The island or map mod itself must be loaded by your server.
Map ​
shared/config/map.lua. The spawn picker and the last-location thumbnail on the select screen show the real GTA V
map. Satellite and road atlas tiles ship with the UI, and players switch between them with the button on the map.
Extra areas are images drawn over the world rectangle they cover, so spawns there sit on real ground instead of open
sea.
Config.Map = {
style = 'satellite', -- default until a player picks one: 'satellite' | 'atlas'
cayoPerico = true, -- draw Cayo Perico (built-in image)
tiles = {
-- satellite = { url = '@my_map_tiles/satellite/{z}/{x}_{y}.jpg', maxZoom = 5, background = '#143c6a' },
},
layers = {
{ id = 'roxwood', label = 'Roxwood', enabled = false, image = '@np_character/maps/roxwood.webp',
bounds = { minX = -4140.0, maxX = 360.0, minY = 8400.0, maxY = 12900.0 } },
{ id = 'roxwood_coast', label = 'Roxwood', enabled = false, image = '@np_character/maps/roxwood_coast.webp',
bounds = { minX = -4140.0, maxX = 360.0, minY = 3900.0, maxY = 8400.0 } },
},
}
| Key | Notes |
|---|---|
style |
Default map style. A player's own pick is stored in the browser storage of their NUI |
cayoPerico |
false hides the island, for servers that don't load it |
tiles |
Replace the built-in base tiles, e.g. with a full render that already includes your map mods. {z} {x} {y} placeholders, 256 px tiles of the usual 8192 px GTA V render (z0 = the whole map, same calibration as Leaflet livemaps) |
layers |
Images over the base map. bounds = the world rectangle the image covers. image for every style, or images = { satellite = …, atlas = … }. Only layers without enabled = false are sent to the UI. A layer's label also names the last location in the area when the game has no zone name for it |
Image paths: '@np_character/maps/file.webp' (the resource's maps/ folder, already a NUI file),
'@other_resource/file.png' (listed in that resource's files {}) or any https:// URL.
Roxwood County ​
Roxwood by The Ambitioneers adds a county north of the map. To show it:
- Open your Roxwood minimap's
roxwood.ytdin OpenIV. - Export
minimap_0_1(the new county) asmaps/roxwood.webp. - Optional: export
minimap_0_0(the edited coast around Paleto Bay) asmaps/roxwood_coast.webp. - Set
enabled = trueon the matching layers.
Other map mods ​
Any image works as long as you know the world rectangle it covers. Minimap textures sit on a grid of 4500 × 4500
world units starting at x = -4140, y = 8400 (top-left corner). Tile minimap_X_Y covers
x = -4140 + 4500·X … +4500 and y = 8400 − 4500·Y … −4500. Extra tiles from "Extra Map Tiles" use the same offsets,
and a positive yOffset moves up.
Starter pack, ID card, outfits ​
shared/config/starter.lua.
Config.Starter = {
enabled = true,
label = 'Starter pack',
cash = 500,
items = {
{ name = 'phone', count = 1, label = 'Phone' },
{ name = 'id_card', count = 1, label = 'State ID card', metadata = 'idcard' },
{ name = 'water', count = 2, label = 'Water' },
},
}
Config.IdCard = { item = 'id_card' }
Config.DefaultOutfits = {
m = { [3] = { 0, 0 }, [4] = { 1, 0 }, [6] = { 1, 0 }, [8] = { 15, 0 }, [11] = { 0, 0 } },
f = { [3] = { 0, 0 }, [4] = { 0, 0 }, [6] = { 3, 0 }, [8] = { 14, 0 }, [11] = { 0, 0 } },
}
| Option | Description |
|---|---|
Starter |
Given on the first spawn of a new character. cash is added on top of the framework's own starting money (standalone starts at 0). Items go to ox_inventory, else the framework inventory; np_inventory takes them through either path on qb and qbx, and on ESX with its Config.Esx.overrideInventory. The summary lists the item labels |
metadata = 'idcard' |
Fills that item's metadata with { firstname, lastname, birthdate, gender, nationality, cid, issued = 'YYYY-MM-DD' } |
IdCard.item |
Documents the ID card item name. The code reads the item from Config.Starter.items (the entry with metadata = 'idcard'), so rename it there |
DefaultOutfits |
Default clothing per freemode gender: [componentId] = { drawable, texture } |
Blacklist ​
shared/config/blacklist.lua. Checked on the server whenever an appearance is saved, and shown greyed out in the
creator. Entries are drawable numbers or 'from-to' range strings.
Config.Blacklist = {
male = { components = {}, props = {}, hair = {} }, -- always blocked for mp_m_freemode_01
female = { components = {}, props = {}, hair = {} },
jobs = { -- blocked for everybody EXCEPT that job
police = {
male = { components = { [11] = { 55 }, [8] = { 58 } }, props = { [0] = { 46 } } },
female = { components = { [11] = { 48 }, [8] = { 35 } }, props = { [0] = { 45 } } },
},
ambulance = {
male = { components = { [11] = { 250 } } },
female = { components = { [11] = { 258 } } },
},
},
}
Job lists are unlocks: those pieces are the job's uniform. In the creator they show up as Duty uniforms, unlocked by job.
Store mode ​
Config.Store = {
barber = { steps = { 'hair' }, price = 150 },
clothing = { steps = { 'clothing' }, price = 250 },
surgeon = { steps = { 'heritage', 'face', 'hair' }, price = 5000 },
account = 'bank',
}
Add your own kinds with any subset of heritage, face, hair and clothing. See Stores. With
Config.Payments and np_payments running, the fee is paid in the np_payments sheet and account is the preselected
method (Stores → np_payments).
UI ​
| Option | Default | Description |
|---|---|---|
Config.Thumbnails |
{ url = nil } |
Real images in the hair style grid, e.g. 'https://cdn.example.com/{gender}/{component}/{drawable}_{texture}.webp' ({gender} = male / female, {component} = 2, {texture} = 0). Images that fail to load fall back to the icon. nil = icon placeholders |
Config.Material |
nil |
nil follows the server theme from np_admin. 'frosted' or 'liquid' (Liquid Glass) wins over it. The player's setting wins over both |
Config.Brand |
nil |
nil follows the server theme. A brand set here wins, e.g. { color = '#3d74ff', strength = 'accent' }. strength: 'accent', 'tiles' or 'glass' |
Config.ServerName |
nil |
Name on the select screen. nil = the sv_projectName convar, else sv_hostname (colour codes stripped) |
Config.Scale |
not set | Optional UI zoom factor sent to the web (boot.scale) |
Commands, staff, logs ​
Config.Logout = { command = 'logout', enabled = true }
Config.Admin = { command = 'charadmin' } -- needs the node np_character.admin (np_admin)
Config.Logs = { webhook = '' } -- or set the convar np_character_webhook (wins)
Config.SavePositionInterval = 60000
| Option | Description |
|---|---|
Logout |
/logout back to select. enabled = false or no command skips it |
Admin |
Staff command name. The permission is the np_character.admin node. See Events & commands |
Logs.webhook |
Discord webhook. Prefer the np_character_webhook convar |
SavePositionInterval |
How often (ms) the client saves the position of the playing character. The server accepts at most one save per half of it. 0 turns the loop off |
Editable in np_admin ​
While np_admin runs, staff can change part of the config live under Resource settings →
Characters (shared/np_admin_settings.lua). shared/config.lua stays the default; np_admin stores only the
overrides. Without np_admin nothing changes.
| Category | Fields |
|---|---|
| General | Default language, default material, debug, server name, in-game year |
| Slots | Slots.default, Slots.max, locked slot text, playtime unlock hours and slots |
| Characters | Delete grace days, crash rejoin window, rename requests, fee and account, default arrival, hospital in the spawn picker, position save interval |
| Identity | Name min / max length, unique and capitalised names, min / max age, height field and limits, backstory length, nationalities |
| Stores | Barber, clothing store and plastic surgeon prices, store account |
| Logs | Discord webhook (secret; the np_character_webhook convar still wins) |
Most fields apply live. Language, material, in-game year, delete grace days, rename settings, default arrival, name
lengths and the age / height / nationality rules reach the UI when it initialises, so on the player's next connect.
SavePositionInterval needs a restart.
Advanced ​
-- Framework tables cleaned on purge (hard delete after DeleteGraceDays). { table, column }.
Config.FrameworkTables = {
qbx = { { 'players', 'citizenid' }, { 'playerskins', 'citizenid' }, { 'player_outfits', 'citizenid' },
{ 'player_vehicles', 'citizenid' }, { 'player_groups', 'citizenid' } },
qb = { { 'players', 'citizenid' }, { 'playerskins', 'citizenid' }, { 'player_outfits', 'citizenid' },
{ 'player_vehicles', 'citizenid' }, { 'player_houses', 'citizenid' }, { 'apartments', 'citizenid' },
{ 'bank_accounts', 'citizenid' }, { 'player_contacts', 'citizenid' }, { 'phone_messages', 'citizenid' } },
esx = { { 'users', 'identifier' }, { 'owned_vehicles', 'owner' }, { 'user_licenses', 'owner' },
{ 'billing', 'identifier' }, { 'addon_account_data', 'owner' }, { 'datastore_data', 'owner' } },
}
-- Global RPC token bucket per player. Each RPC also has its own window.
Config.RateLimit = { perSecond = 15, burst = 30, maxPayload = 32768 }
Add the tables of your other resources (housing, phone, garages) to Config.FrameworkTables so a purge removes them
too. Missing tables are skipped. On qbx the bridge tries qbx_core:ForceDeleteCharacter first and only falls back to
this list when that fails.
maxPayload is the approximate JSON size limit of one RPC payload. Payloads are also limited to a depth of 8,
512 keys, 4096-byte strings and 128-byte keys.