All products

np_character

Multi-character select, a character creator in six steps and a spawn picker for FiveM. It replaces the stock multicharacter of qbx_core, qb-core and es_extended, or runs standalone. The same UI also runs the barber, the clothing store and the plastic surgeon.

v0.1.0qbx · qb · ESX · standaloneRequires oxmysqlRequires np_npchandler
Price TBAStore link follows at release
Installation guideDocumentation
Version
0.1.0
Frameworks
qbx, qb, ESX, standalone
Dependencies
oxmysql, np_npchandler. ox_inventory optional
Database
4 tables, created at start (one is standalone only)
Appearance format
illenium-appearance compatible
Slots
3 by default, up to 5, by config, np_admin permission, database or playtime
Languages
English, German
Build
Node 18+ once, to build the UI
Character select: three characters, a new character slot and a locked slot, with job, CID, cash, bank, playtime and last location in the details panel
Character select: three characters, a new character slot and a locked slot, with job, CID, cash, bank, playtime and last location in the details panel

In-game captures from a local ESX server, taken at 2560×1440.

What's in it

The whole path from join to playing: select, create, spawn, arrive. /logout goes back to select.

Character select

  • Slot cards with a live preview ped per character, its saved look, walk style and an idle animation.
  • Info panel with job, CID, phone, age, cash and bank, time played, last seen and last location.
  • Status chips for players online, in-game time and weather, plus a settings sheet.
  • Keyboard control: 1–9 pick a slot, Enter plays, N new, Del delete.

Manage a character

  • Default character: auto-selected on join, one per licence.
  • Move to another slot, copy a look code, request a name change that staff review.
  • Safe delete: type the full name, then hold the button. Soft-deleted, restorable for DeleteGraceDays days (7 by default), then purged.

ID card and starter pack

  • A State of San Andreas ID card with a real headshot of the ped on the summary.
  • Handed out as an inventory item with name, birthdate, sex, nationality, CID and issue date as metadata.
  • Starter pack on the first spawn: $500 cash, a phone, the ID card and two waters by default.
  • Look codes like NPC-7K2M-Q9XD to share an appearance, without tattoos.

Spawn picker and arrival

  • Spawns grouped as Recent, Property, Job, Public and Hospital, pinned on the real GTA V map with pan and zoom and a sky camera over the focused spawn.
  • Satellite or road atlas, Cayo Perico and extra layers for map mods like Roxwood.
  • Job spawns with an on-duty switch. Other resources add their own spawns, like motel rooms.
  • Forced spawns: downed characters go to the hospital, a crash rejoin within 10 minutes goes back to the last location.
  • New characters can arrive with a scripted LSIA flight, about 8 s and skippable.

Staff panel

  • /charadmin <id> lists every character of a licence, deleted ones included, with rename requests and backstories.
  • Restore, force rename, reset appearance, delete or purge, teleport to the last location, set slots.
  • Works for offline players by license: identifier. Every action is logged to a Discord webhook.

Server-authoritative

  • Every action is a server RPC with a payload schema, a rate limit, an ownership check and a session state machine.
  • Players sit in their own routing bucket until they spawn.
  • Every saved appearance is sanitised on the server: values clamped, blacklist applied with the player's job.
  • Spawns are picked by id from the server's list. Coordinates from the client are never used.

Look and settings

  • Nimbus UI, the same look as np_hud, np_phone and np_menu.
  • Players pick frosted or Liquid Glass material and the language, English or German.
  • Optional server brand colour and server name on the select screen.

A closer look

The creator in six steps

A stepper at the top, free jumps between steps and a green check on finished ones. Every step has undo / redo, randomise, lock and reset. A camera rail frames head, body or feet, and Q / E or a drag orbits the ped.

StepWhat the player sets
1 · IdentityMale, female or a ped model (with the np_character.peds permission). First and last name, validated live on the server. Date of birth with age rules, nationality, height, walk style and voice previewed on the ped, an optional backstory for staff
2 · HeritageMother and father from the GTA parent faces, resemblance and skin sliders, an optional third parent (GTA's 3-way head blend), a skin-tone strip, ageing and sun damage
3 · FaceA clickable face map that jumps to its sliders. All 20 face features, with 2-axis pads for brows, nose, cheekbones and jaw
4 · Hair & MakeupHair, beard, brows, makeup and body overlays. A searchable style grid with favourites, 64-colour palettes with primary and highlight colour, eye colour and opacity per layer
5 · ClothingSix starter outfits per gender, then drawable and texture per piece. Arms auto-match the top, duty uniforms unlock by job, tattoos are free at creation, X toggles a piece off
6 · SummaryThe State ID card, a checklist of every step, the arrival choice, the starter pack and look codes

Pieces in the blacklist are greyed out. Job lists work as uniforms: blocked for everybody except that job, and checked again on the server. Name and date of birth are final once the character exists; later changes go through a rename request.

Slot limits

The server works out the usable slots per licence. Slots above that and up to the cap show as locked, with a reason.

SourceDefaultHow it works
Config3 slotsConfig.Slots.default for everyone
Databasenot setA per-licence override from the staff panel or setSlots, e.g. from a Tebex package
Permissions4 or 5 slotsThe nodes np_character.slots.4 and np_character.slots.5, granted in np_admin. Add your own keys, the highest wins
Playtime5 slots at 500 hSummed over all characters of the licence, deleted ones included. false turns it off
Cap5 slotsConfig.Slots.max. Everything above is capped

Store mode: barber, clothing, surgeon

The creator also runs for a character that is already playing. The player stays where they are, the summary becomes a total and a Pay button. np_character has no store locations or blips: your shop resource opens the store from the client or the server.

KindStepsDefault price
BarberHair & Makeup$150
Clothing storeClothing$250
Plastic surgeonHeritage, Face, Hair & Makeup$5,000
Your ownAny mix of heritage, face, hair and clothingYour price, or free, e.g. a wardrobe
  • Flat price per visit from bank or cash, charged on the server only when something changed. Same look, no charge.
  • Only the fields of the store's steps are saved. Model and gender can't change in a store.
  • If the player can't pay, the store stays open with an error and nothing is saved. Cancel puts the saved look back.
-- shared/config.lua
Config.Store = {
  barber   = { steps = { 'hair' }, price = 150 },
  clothing = { steps = { 'clothing' }, price = 250 },
  surgeon  = { steps = { 'heritage', 'face', 'hair' }, price = 5000 },
  account  = 'bank',
}

Set it up

Compatibility

The framework is detected once at start (qbx_core, then qb-core, then es_extended). Without one, np_character is the character system itself.

KindSupported
Frameworkqbx_core, qb-core, es_extended, or standalone with its own np_characters table
Databaseoxmysql and np_npchandler (the preview peds), the only hard dependencies
Inventoryox_inventory, else the framework inventory, for the starter pack and the ID card. Standalone needs ox_inventory for items
Appearanceillenium-appearance / fivem-appearance format
Replacesqbx_core characters, qb-multicharacter and qb-spawn, esx_multicharacter
LanguagesEnglish, German
qbx / qbESXStandalone
Character rowsplayersusersnp_characters
Skin write-throughplayerskinsusers.skinOwn meta row only
Money, jobs, duty✓✓ (duty needs ESX Legacy 1.10+)Own columns, starts at $0 and unemployed
Downed → hospital✓✓✓

Coming from illenium-appearance

  • Import on first sight: existing characters get their np_character row the first time their owner opens the select screen. Identity comes from the framework, the look from playerskins or users.skin.
  • Write-through: every saved look also goes back to playerskins or users.skin in the illenium-appearance format, so shops that read those tables see the current look.
  • Only illenium-appearance skins are imported. qb-clothing and skinchanger formats are skipped and those characters start with the defaults.

Database tables

Created at start with Config.AutoCreateTables = true (the default), or import sql/np_character.sql yourself.

TableHolds
np_character_metaOne row per character on every framework: identity, appearance, default flag, last location, playtime, last seen, soft delete and rename request
np_character_slotsPer-licence slot override
np_character_looksLook codes and the appearance behind them, without tattoos
np_charactersStandalone only: name, birthdate, gender, nationality, cash, bank, job and metadata

Installation

You need a recent FiveM artifact, oxmysql, np_npchandler, and Node 18+ once to build the UI.

  1. Put the resource in resources/ as np_character. Keep the name, the NUI callbacks use it.
  2. Build the UI once. It creates web/dist, which the manifest loads:
    cd web && npm ci && npm run build
  3. Switch off the framework's own character system:
    FrameworkWhat to change
    qbx_corecharacters.useExternalCharacters = true in qbx_core/config/client.lua
    qb-coreDon't start qb-multicharacter or qb-spawn
    es_extendedConfig.Multichar = true, and don't start esx_multicharacter
    StandaloneNothing to do
  4. Start it after oxmysql, the framework and ox_inventory. Permissions are managed in np_admin, so there are no add_ace lines: grant np_character.admin to your staff group, and np_character.slots.5 to a VIP group for 5 slots:
    ensure oxmysql
    ensure qbx_core        # or qb-core / es_extended (optional)
    ensure ox_inventory    # optional
    ensure np_admin        # optional: permissions, settings, logs
    ensure np_npchandler   # required
    ensure np_character
    
    # optional: Discord logs (set, not setr)
    set np_character_webhook "https://discord.com/api/webhooks/…"
  5. Make sure the ID card item exists in your inventory. It is the id_card entry in Config.Starter.items; rename it there if your item is called something else.
  6. Join the server: the select screen opens. Create a character, pick a spawn, then /logout to come back.

For your own scripts

Open stores, add spawns, set slots and read characters through exports, and react to the loaded, created and deleted events.

-- client: barber from your own shop resource
exports.np_character:openCreator({
  kind = 'barber',
  onDone = function(ok, appearance) end,
})

-- server: a spawn for every character that owns a motel room
exports.np_character:registerSpawnProvider('motels', function(src, cid)
  return { { id = 'room4', type = 'property',
             label = 'Pink Cage Motel', sublabel = 'Room 4',
             coords = { x = 324.9, y = -212.6, z = 54.1, w = 160.0 } } }
end)

-- server: Tebex package with five slots
local license = GetPlayerIdentifierByType(source, 'license')
exports.np_character:setSlots(license, 5)

Client: openCreator, openSelect, isBusy, getAppearance, setAppearance. Server: getCharacters, getCharacter, getActiveCharacter, registerSpawnProvider, openStore, setSlots, logout.

Questions

Do I need a framework?

No. Standalone, np_character is the character system itself, with its own np_characters table for name, money and job. With qbx_core, qb-core or es_extended it replaces their multicharacter.

Will my players lose their existing characters and skins?

No. Existing characters in players or users are picked up the first time their owner opens the select screen. Skins in the illenium-appearance format come along; qb-clothing and skinchanger skins are skipped and start with the defaults.

Can I keep my existing clothing shops?

Shops that read playerskins or users.skin see the current look, because np_character writes through. The other way round, np_character applies its own saved look first, so a look another shop saves only to those tables is not what spawns next time. Use np_character's store mode for appearance changes.

Does it place barbers and clothing stores on the map?

No. It has no store locations or blips. Your shop resource (a marker, a target zone or a menu entry) calls openCreator on the client or openStore on the server.

How do I sell extra character slots?

Grant a permission node such as np_character.slots.5 in np_admin, or call setSlots(license, n) from your package handler. Staff can also set slots in /charadmin. Everything is capped at Config.Slots.max.

What happens when a player deletes a character by mistake?

It is only soft-deleted. Staff can restore it from /charadmin for Config.DeleteGraceDays days (7 by default). After that it is purged together with its framework rows.

Which languages are included?

English and German. Players switch the UI language in the settings on the select screen; the server default is Config.Locale.

Works well with

Select, create, spawn.

Installation, configuration, stores and every export are in the docs.

Install np_character