Skip to content

Configuration ​

Core settings live in shared/config.lua. Each app area has its own file in shared/config/:

File Table Covers
shared/config.lua Config.* Framework, voice, keys, item, number format, walk mode, prop and animation, weather, uploads, App Store, rate limit, settings
shared/config/comms.lua Config.Comms Calls, ringtone, payphones, contacts, messages, Darkchat
shared/config/city.lua Config.City Wallet, mail, garage, groups, job center
shared/config/social.lua Config.Social, Config.Maps Chirp, Yellow Pages, businesses, maps, calendar, stocks, transit, news; the map tiles and layers
shared/config/media.lua Config.Media Allowed image hosts, AirDrop, photos, camera, notes, files
shared/config/screen.lua Config.ScreenMirror Screen mirror and privacy glass (Screen mirror)
shared/config/network.lua Config.Carrier, Config.Network What each action needs from a network provider, the outbox, call quality (Network)

Secrets

Config files are shared with clients. Upload tokens, webhooks and the passcode pepper are read from server convars. See Installation → Secrets.

Core ​

Option Default Description
Config.Framework 'auto' 'qbx', 'qb', 'esx', or auto-detect (qbx → qb → esx)
Config.Voice 'auto' 'pma-voice', 'saltychat', 'yaca', 'none', or auto-detect. Without voice, calls are UI-only
Config.VoiceCallChannelOffset 10000 pma-voice only: phone calls use channel offset + callId, away from channels other scripts use
Config.OpenKey / Config.Command 'F1' / 'phone' Default key binding (rebindable) and command
Config.CallKeys { accept = 'Y', decline = 'BACK' } Ring-mode keys while the phone is put away. false disables a key
Config.KeepAppMinutes 5 Minutes the open app stays mounted under the lock screen (0 = close on lock)
Config.RequireItem / Config.ItemNames false / { 'phone' } Require one of these items to open and use the phone. Uses ox_inventory if started, otherwise the framework inventory
Config.NumberFormat '555-####' Phone number pattern, # = random digit. Keep at least 4 #
Config.ShowServerId true Server ID next to the clock (hidden in streamer mode)
Config.Locale 'en' NUI language
Config.NoPhoneText "You don't have a phone." Feed message when the item is missing
Config.WalkMode true The phone opens in cursor mode (cursor on, movement disabled, held in both hands). With true, Left Alt toggles walk mode (cursor off, keep walking or driving one-handed). Typing always captures the keyboard
Config.CursorModeControls { 249 } (push to talk) Controls kept enabled in cursor mode. Everything else is disabled while the cursor is on
Config.DisabledControls camera, attack, weapon wheel, pause, chat, … Controls disabled every frame while the phone is open in walk mode
Config.Prop np_phone_handset (fallback prop_npc_phone_02) on bone 28422 Hand prop: model, fallback model, bone, offset, rotation, case colour variations and the screen rectangle (Phone prop). Attached through np_prophandler (synced, key phone), so others see it too
Config.Anim cellphone@, in-car anim@cellphone@in_car@ps text (walk mode) and call enter / base / exit clips, plus cursor: the two-handed texting loop on foot in cursor mode
Config.WeatherCity / Config.Weather 'Los Santos' / per GTA weather type Label and °C per weather type (GTA has no temperature), used by the widgets and the Weather app
Config.NotifySound Text_Arrive_Tone Frontend sound for notifications while the phone is closed
Config.Upload fivemanage Photo upload provider: 'fivemanage', 'discord', 'none'. Token and webhook come from convars
Config.StoreApps { { id = 'darkchat', item = 'vpn' } } App Store gating (see below)
Config.RateLimit { perSecond = 15, burst = 40 } Per-player server RPC token bucket
Config.EnforcePasscode false Reject app RPCs until a passcode-protected phone is unlocked
Config.ScreenMirror enabled, 2.5 m, 2 screens Generic screen on other players' phone props and the privacy glass item privacy_glass (shared/config/screen.lua, Screen mirror)
Config.Settings Allowed player settings keys and types, defaults, size limit
Config.Debug false Verbose logging

Phone prop ​

np_phone streams its own hand-held phone, np_phone_handset (stream/np_phone_handset.ydr, .ytd, .ytyp, loaded with data_file 'DLC_ITYP_REQUEST'). It uses the same pivot and axes as the vanilla prop_npc_phone_02 (origin at the body centre, screen facing -Y, +Z towards the Dynamic Island), so the vanilla cellphone@ clips and the default offset and rotation of 0, 0, 0 fit. It has a real flat screen surface for the screen mirror and the Settings → Case colour swatches as texture variations.

np_phone_handset in the seven case colours (renders)

lua
Config.Prop = {
  model = 'np_phone_handset',
  fallbackModel = 'prop_npc_phone_02', -- used when `model` isn't streamed; the screen mirror is off for it
  bone = 28422,                        -- PH_R_Hand
  offset = vector3(0.0, 0.0, 0.0),
  rotation = vector3(0.0, 0.0, 0.0),
  -- Settings case colour -> texture variation of `model`. Unknown -> 0
  caseVariations = { silver = 0, black = 1, pink = 2, red = 3, blue = 4, gold = 5, green = 6 },
  -- Screen rectangle in model space (metres), nil = no screen mirror for this model
  screen = {
    center = vector3(0.0, -0.0040, 0.0), -- middle of the glass
    right = vector3(0.03335, 0.0, 0.0),  -- half width: center + right = middle of the right edge
    up = vector3(0.0, 0.0, 0.07133),     -- half height: center + up = middle of the top edge
    lift = 0.0008,                       -- metres along the normal (right x up, out of the glass)
  },
}
Index caseColor Frame Back glass
0 silver (default) #d9d9db #e6e5e1
1 black #3c3c40 #2b2b2e
2 pink #e4b0cc #ecc6da
3 red #d23e37 #c42e28
4 blue #5b9ae6 #3b7ed2
5 gold #deb548 #eed48c
6 green #52b472 #8cd6a4
  • Case colours: the NUI reports the swatch, the client keeps it in KVP (np_phone:caseColor) and passes textureVariation = Config.Prop.caseVariations[caseColor] or 0 to np_prophandler, which applies it with SetObjectTextureVariation. A synced attachment can't change live, so a new colour re-attaches the prop under the same key. An unknown colour falls back to 0 (silver); the fallback model gets no variation.
  • Fallback: when np_phone_handset isn't streamed (stream/ removed or the DLC_ITYP_REQUEST line missing), fallbackModel is attached instead and the screen mirror stays off, because the rectangle only fits the handset.
  • Screen rectangle: right and up are as seen when looking at the screen; the glass is 66.70 x 142.66 mm (360:770). If you swap in another model, measure its glass and replace screen: if the overlay is mirrored, negate right; if it is visible from behind only, negate right and set Config.ScreenMirror.flipWinding. Without screen the mirror is off for that model.

The handset hasn't been checked in game yet (grip in the cellphone@ clips, shading, LOD pops at 15 / 40 m, the synced case colour). The model sources and build pipeline are in the resource under art/phone/ and docs/PROP.md.

App Store gating ​

Apps that aren't listed can be installed freely.

lua
Config.StoreApps = {
  { id = 'darkchat', item = 'vpn' },                                   -- needs the item
  { id = 'mdt', job = 'police' },                                      -- needs the job
  { id = 'mdt', job = { 'police', 'sheriff' }, grade = 2, onduty = true }, -- list, min grade, on duty
}

Other resources can add entries at runtime with exports.np_phone:registerStoreApp(entry) (see Exports).

Player settings ​

lua
Config.Settings = {
  maxBytes = 16384,      -- max size of a player's settings JSON
  allowUnknown = true,   -- accept keys not listed below (^[%a][%w_]*$, ≤ 32 chars)
  keys = { wallpaper = 'string', volume = 'number', dnd = 'boolean', homeOrder = 'table', --[[ ... ]] },
  defaults = { theme = 'dark', wallpaper = 'clouds', ringtone = 'Reflection', volume = 0.6, use24h = true, glass = true, --[[ ... ]] },
}

The network settings wifiCalling (default true), lowData (default false) and roaming (default true) only matter with a network provider (Network).

hideScreen (default false) is Settings → Hide screen from others: other players only see that the screen is on (Screen mirror).

glass = true turns on the Liquid Glass look for every player who hasn't picked one yet. Set it to false to start with the classic frosted look. Players switch it under Settings → Display & Size.

Comms (Config.Comms) ​

Option Default Description
ringTimeout 30 Seconds an outgoing call rings before it counts as missed
ringtone Remote_Ring / Phone_SoundSet_Michael Frontend sound. Nearby players hear it in 3D (state bag np_phoneRinging)
ringRange / ringInterval 25.0 / 3500 3D ringtone range (m), re-trigger interval (ms)
hiddenPrefix '#31#' Hides the caller ID for one call
payphones true Walk up to a payphoneModels prop, press E, dial
payphoneDistance / payphoneCost / payphoneKey 1.6 / 5 / 38 (E)
maxContacts 500
shareDistance / shareTimeout 3.0 / 60 Contact sharing range (m) and prompt lifetime (s)
maxMessageLength / maxGroupMembers / pageSize 1000 / 16 / 50
liveLocationMinutes / liveLocationInterval { 15, 30, 60 } / 5000 Offered durations; ms between updates
maxTransfer 1000000 Max in-chat money transfer
darkchatTTLHours / darkchatMaxChannels / darkchatMaxLength 24 / 20 / 500

City (Config.City) ​

Option Default Description
bankName / cardBrand 'Fleeca' / 'VISA' Shown on the wallet card. With np_banking the money behind it is the checking account (Maze Bank by default) and its own Bank app shows the real banks and cards
maxTransfer 1000000 Max single transfer, request or invoice
allowDeclineInvoices false Business invoices and fines can't be declined (payment requests always can)
overdueWarnDays 3 Invoices due within N days show a banner
invoicePayout nil function(invoice) called after a business invoice is paid. Credit the society account here
mailDomain 'lsmail.com' Player addresses are first.last@<mailDomain>
mailMaxAccounts / mailMaxLogins 5 / 8 Extra Mail accounts a character can create (own address not counted) / accounts signed in at once (own included)
govSenders LSPD, City Hall, DOJ, … Senders whose mail lands in the "Gov" folder
valetFee / impoundFee 150 / 600
valetSpawn false Built-in valet spawn. Keep false when your garage script handles np_phone:garage:valet
impoundReleaseDb true qb/qbx: set player_vehicles.state = 1 on release
garages / defaultGarage / impound Garage name → label and coords (waypoints)
groupMaxMembers / groupInviteTimeout / groupNearbyRadius 6 / 120 / 10.0
groupJobs sanitation, delivery, fishing Jobs listed under "Available" in Groups
demoJob { enabled = false } /np_phone_demojob to try the group job API. Never enable it on a live server
jobCenter / applyCooldown 5 civilian jobs / 60 Job center entries; "Apply" sends a mail with a waypoint

Example society payout:

lua
invoicePayout = function(invoice)
  if invoice.senderJob then exports['Renewed-Banking']:addAccountMoney(invoice.senderJob, invoice.amount) end
end,

With np_banking, credit the job's account through its exports:

lua
invoicePayout = function(invoice)
  if not invoice.senderJob then return end
  local acc = exports.np_banking:GetSocietyAccount(invoice.senderJob)   -- created on first use
  if acc then exports.np_banking:Credit(acc, invoice.amount, { reason = 'Invoice ' .. tostring(invoice.id), merchant = 'np_phone' }) end
end,

Social (Config.Social) ​

Option Default Description
verifiedJobs {} Jobs whose members get the Chirp blue check while on that job, e.g. { 'police', 'ambulance', 'news' }. Empty: only admins verify accounts (see below)
chirp maxLength = 280, maxImages = 4, anonymousTips = true, …
chirp.maxAccounts / chirp.maxSessions 3 / 5 Chirp accounts a character can own (the first one included) / be logged into at once (own and shared)
chirp.passwordMinLength 4 A password lets other characters log in, e.g. a shared business account
chirp.verifyCommand 'chirpverify' Admin command for the blue check. false disables it
ypPostFee / ypExpireHours / ypMaxActivePerPlayer 50 / 48 / 5 Yellow Pages ads
ypCategories vehicles, homes, services, items, other
businesses / businessCacheSeconds 9 businesses / 15 "Open now": open while a player with that job is on duty
pois / placeIcons / maxPlaces Maps
calendarMaxEvents / calendarReminderCheck / calendarMaxInvites 200 / 60 / 10
stockTickMinutes / stockHistory / stocks 10 / 48 / 7 symbols Random-walk prices. crypto = true allows 4 decimals
transit ticket price, lines and stops Departures computed from the in-game clock
newsJobs / newsNotifyAll { 'news', 'weazel' } / false Who can publish; Breaking News notification to everyone

Chirp verification ​

The blue check is admin-only by default. Admins (np_admin node np_phone.admin, see Installation → Permissions) or the server console grant or remove it:

/chirpverify <handle> [on|off]

Without on / off the check is toggled. Other resources use exports.np_phone:setChirpVerified(target, bool) (see Exports). To give job members the check automatically, list their jobs in verifiedJobs.

With np_admin running, staff can also use the Chirp verification staff tool, and every change is written to np_admin's audit log (category np_phone).

Maps (Config.Maps) ​

The Maps app (and Transit) draws the real GTA V map. Road atlas and satellite tiles and a Cayo Perico layer ship with the phone.

Option Default Description
style 'atlas' Default style until a player picks one: 'atlas' or 'satellite'
cayoPerico true Draw Cayo Perico. Set false if your server has no island
tiles built-in Replace the base tiles, e.g. with a full map render that already includes your map mods. { atlas = { url, maxZoom, background }, satellite = { … } }, url with {z} {x} {y} placeholders, 256px tiles in the usual 8192px GTA V render layout
layers Roxwood (disabled) Images drawn over a world rectangle: { id, label, enabled, image | images = { atlas, satellite }, bounds = { minX, maxX, minY, maxY } }

Image paths can be @np_phone/maps/<file> (the resource's maps/ folder, already served to the UI), @other_resource/<file> (listed in that resource's files {}) or any https:// URL.

lua
layers = {
  { id = 'roxwood', label = 'Roxwood', enabled = true, image = '@np_phone/maps/roxwood.webp',
    bounds = { minX = -4140.0, maxX = 360.0, minY = 8400.0, maxY = 12900.0 } },
},

Map mods such as Roxwood

Minimap textures sit on a 4500 × 4500 world-unit grid starting at x = −4140, y = 8400 (top-left), so an exported minimap tile lines up 1:1. For Roxwood, export minimap_0_1 (and optionally minimap_0_0) from roxwood.ytd with OpenIV, save them as maps/roxwood.webp / maps/roxwood_coast.webp and enable the two prepared layers. See maps/README.md in the resource.

Media (Config.Media) ​

Option Default Description
allowedHosts FiveManage, Discord CDN Image URLs players can save or show to others must be https on one of these hosts (or a subdomain). Add your custom CDN domain
share distance = 3.0, timeout = 45, maxPendingPerTarget = 3, label = 'contact' AirDrop. label = 'name' shows character names (metagaming risk)
photos max = 500, pageSize = 60, maxAlbums = 30
camera encoding = 'webp', quality = 0.85, cooldown = 1500, … allowDiscordClientUpload = false (see Upload security), keys
notes max = 300, maxLength = 20000, maxFolders = 30
files max = 500, maxBody = 20000, types

Editable in np_admin ​

When np_admin runs, staff can change 43 of these options under Settings → Phone (Resource settings). The config files stay the default; np_admin stores only the overrides. Without np_admin the files are used as written.

Category Fields
General NumberFormat (new numbers only), ShowServerId†, KeepAppMinutes†, WeatherCity, NoPhoneText, Debug
Controls Command*, OpenKey*, CallKeys.accept / decline*, WalkMode
Security RequireItem, ItemNames, EnforcePasscode, FaceUnlock.enabled, RateLimit.perSecond / burst
Chirp & ads Social.verifiedJobs, Social.chirp.maxLength / maxAccounts, Social.ypPostFee / ypExpireHours / ypMaxActivePerPlayer
News Social.newsJobs
Bank & mail City.bankName / maxTransfer / allowDeclineInvoices / mailDomain (new addresses only) / mailMaxAccounts
Garage City.valetFee / impoundFee
Calls Comms.ringTimeout, Comms.payphones*, Comms.payphoneCost, Comms.maxMessageLength, VoiceCallChannelOffset*
Media Media.photos.max, Media.camera.quality
Screen mirror ScreenMirror.enabled, ScreenMirror.distance, ScreenMirror.maxActive, ScreenMirror.glass.item, ScreenMirror.glass.mode

* needs a resource restart (command, key mappings, payphone targets and the voice channel offset are set up at start). † reaches a player with the phone's init payload (next join). Everything else applies live. Upload settings and secrets (Config.Upload, the np_phone:* convars) are not editable in np_admin.