All settings live in config.lua. The file is in escrow_ignore, so your edits
survive updates. It is ordered by how often an owner touches it: Quick Setup first,
then Features, then Advanced. Server-only secrets live in config_server.lua, a
server script that never downloads to clients. Keep tokens and API keys there.
Quick setup#
Core#
Config.Frameworkstring'esx'Framework integration. One of 'esx', 'qbcore', or 'qbox'. 'qbx' is accepted as an alias of 'qbox'.
Config.Localestring'en'Interface language. One of the ten shipped ids: en, fi, de, fr, pt-br, es, tr, nl, it, pl. Players can override it per account in Settings.
Config.Accountstring'bank'Account used for trading. One of bank, money, or cash.
Config.LaptopItemstring'laptop'Inventory item that places the laptop.
The laptop item must exist in ox_inventory. See Installation.
Config.TableNamestring'nx_computer_assets'Database table that stores per-account assets. Change only if you renamed the table.
Config.BiometricUnlockbooleantrueWhether players may enable fingerprint unlock and skip the PIN on a laptop they have signed into before. false requires the PIN every time.
Config.MaxAccountsPerCharacternumber3How many separate accounts one character can create. Each account has its own handle, PIN, files, and mail. 1 allows a single account.
Config.AccountExportResourcesarray{ 'nx_phone' }Resources allowed to create a laptop account for a player through the CreateAccountForCharacter export. nx_phone uses it for Create New Account in its Settings.
Banking#
Backend for the Banking app and all in-app money movement.
Config.Banking.Backendstring'auto'Money backend for the Banking app. One of auto, framework, or realbanking.
'auto'uses nx_realbanking when it is started, otherwise the framework backend. Recommended.'framework'uses the framework's own cash and bank accounts. Works anywhere with no dependencies.'realbanking'bridges to nx_realbanking. Proximity-gated, with a clean not-configured state when absent.
Config.Banking.CashAccountstringnilFramework-backend cash account name. nil uses stock naming per framework.
Config.Banking.BankAccountstringnilFramework-backend bank account name. nil uses stock naming per framework.
Config.Banking.MinTransfernumber1Smallest transfer, request, or scheduled payment.
Config.Banking.MaxTransfernumber1000000Largest single transfer, request, or scheduled payment.
Config.Banking.TransferMemoMaxLennumber140Memo character cap. 0 disables memos.
Config.Banking.MaxTransfersPerMinutenumber6Per-account outbound burst cap. Guards against a compromised client sweeping an account. The scheduled-payment watcher is exempt. 0 disables it.
Config.Banking.DailyTransferCapnumber5000000Per-account outbound total over a trailing 24 hours, in fiat.
Config.Banking.SchedulePollIntervalMsnumber60000Framework-backend standing-payment watcher cadence in milliseconds, clamped between 15 seconds and 10 minutes.
Config.Banking.MoneyRefreshDebounceMsnumber250Delay in milliseconds before an open laptop refreshes after money moves, clamped between 50 and 2000.
Config.Banking.AdaptertablenilCustom money adapter, used only when Config.Framework is set to a custom value. Provides get, add, and remove functions for cash and bank. Mutators must be atomic, reject overdraw, and return a boolean success.
Apps#
Built-in app ids: banking, finance, markets, jobs, vehicles, darknet, casino, forums, notes, docs, calculator, explorer, settings, email, messages, contacts, browser, terminal, map, photos, store, meetings, newsroom, mdt, admin, employees.
Config.Apps.Disabledarray{}Built-in apps to hide everywhere and refuse to open. Given as an array of ids or a map of id to true.
Config.Apps.ExternaltableSDK for third-party apps. Any resource can publish its own app that renders in a sandboxed frame with a locked-down bridge and no access to banking, crypto, inventory, admin, or identifiers.
Publishing third-party apps from another resource is covered in the SDK guide.
Config.Apps.External.EnabledbooleantrueMaster toggle. false makes every registration call be ignored.
Config.Apps.External.AllowarraynilResource allowlist. nil or empty lets any resource register. A non-empty list restricts registration to those resources.
Config.Apps.External.Denyarray{}App ids that can never register.
Config.Apps.External.MaxAppsnumber24Ceiling on the number of registered external apps.
Config.Apps.StoretableNX Store. Apps start uninstalled per account and are installed from the Store app. Ids also present in InstallerSites are hidden from the store and found through a website instead. An empty NotPreinstalled, or Enabled set to false, preinstalls everything.
Config.Apps.Store.EnabledbooleantrueMaster toggle for the NX Store app.
Config.Apps.Store.NotPreinstalledarray{ 'banking', 'finance', 'markets', 'contacts', 'jobs', 'vehicles', 'forums', 'casino', 'darknet' }Apps that start uninstalled per account.
Docs is preinstalled by default because .doc and .pdf attachments arrive from other players, and a reader that must be installed first leaves those files unopenable. Add 'docs' to the list to require the install.
Config.Apps.Store.InstallerSitestable{ darknet = 'undernet.lc' }Map of app id to the .lc site that serves its installer. These apps are not sold in-store.
Targeting and placement#
Config.TargetDistancenumber1.5ox_target interaction range in meters.
Config.TargetOpenLabelstring'Open Laptop'Label shown on the open-laptop target prompt.
Config.TargetOpenIconstring'fa-solid fa-laptop'Font Awesome icon for the open-laptop target prompt.
Config.TargetPickupLabelstring'Pick Up Laptop'Label shown on the pickup target prompt.
Config.TargetPickupIconstring'fa-solid fa-box'Font Awesome icon for the pickup target prompt.
Config.EnablePickupbooleantrueWhether a placed laptop can be picked back up.
Config.PlacementToastsbooleanfalseShow the Laptop placed and Laptop packed up toasts, and the same toasts for the projector and the polaroid. Off by default. Errors always show.
Config.PlaceDistancenumber5.0Maximum placement distance in meters.
Config.PreviewAlphanumber100Opacity of the ghost placement preview.
Config.PickupMaxDistancenumber5.0Server-side pickup range check. An anti-harvest guard, so keep it small.
Config.PlacementBucketsbooleantruePlaced laptops, projectors and polaroids show only to players in the routing bucket they were placed in, so a laptop in one apartment does not appear in every other apartment behind the same door. False puts every placed item in one shared world. If your housing script hands out a new bucket on every entry, return a stable number per apartment from bridge/server/worlds.lua (NXFW.WorldOf).
Laptop in vehicles#
Using the laptop item while seated opens it on the player's lap. Nothing is placed and the item stays in the inventory. The driver can open it only while stopped, and it closes if the vehicle moves. Passengers can use it while moving.
Config.Vehicle.EnabledbooleantrueMaster toggle for lap mode.
Config.Vehicle.StopSpeednumber0.5Speed in meters per second. The driver can open the laptop below this and is closed out above it.
Config.Vehicle.ExcludedClassesarray{ 8, 13 }Vehicle classes with no lap. 8 is motorcycles, 13 is cycles.
Config.Vehicle.FadeMsnumber350Open and close fade in milliseconds.
Config.Vehicle.LidMsnumber250Milliseconds the closed lid shows before opening and before fading out.
Config.Vehicle.Laptable{ Forward = 0.19, Up = 0.19, Lateral = 0.0, Pitch = -6.0 }Laptop position on the lap. Forward, Up, and Lateral are meters from the seat origin. Pitch is in degrees, with the hinge edge up.
Config.Vehicle.Cameratable{ distance = 0.03, heightOffset = 0.42, aimOffset = vector3(0.0, 0.13, 0.10), fov = 50.0, nearClip = 0.2 }Focus camera in lap mode. It sits above the operator's eye line and looks down at the screen. A lower heightOffset gives a flatter angle.
Config.Vehicle.Animtable{ Enabled = true, Dict = 'amb@world_human_stand_mobile@male@text@base', Name = 'base', Flag = 49 }Upper-body anim played while the laptop is on the lap.
Config.Vehicle.KeepSessionbooleantrueClosing the laptop in a vehicle keeps the player signed in, with their apps as they left them, until they leave the vehicle. Reopening it there needs no sign-in. false signs them out on every close.
Config.Vehicle.Screen.EnabledbooleantrueShow the laptop as a flat window in the middle of the screen when it is opened in a vehicle, instead of moving the camera onto the lid. Other players still see the laptop and its screen on the player's lap. false brings back the camera on the lid.
Config.Vehicle.Screen.Sizenumber0.72Share of the screen height the window may use.
Config.Vehicle.Screen.PixelPerfectbooleantruePrefer exact multiples of the laptop's 1280x720 screen, for the sharpest text.
Config.Vehicle.Screen.Mousestring'native''native' uses the normal mouse pointer, which changes shape over buttons and text. 'virtual' keeps the laptop's own cursor.
Config.Vehicle.Screen.Dimnumber0.55How dark the game behind the window gets, from 0 to 0.9.
Config.Vehicle.Screen.HideHudbooleantrueHide the GTA HUD, the minimap and the NX HUD while the window is open.
Laptop placed on a vehicle#
Aim the placement preview at a car's roof, bonnet, boot, flatbed, or dashboard and
the laptop attaches to it. It rides the vehicle and stays usable at any speed. Any
player can open it or pick it up, like a laptop on a desk. It is never saved to the
database, and when the vehicle is gone it goes back to the inventory of whoever placed
it, wherever they are. If they are offline, it waits for them to come back. config.lua also ships an optional Camera entry, commented out, for the
focus camera.
Config.VehiclePlacement.EnabledbooleantrueMaster toggle for placing a laptop on a vehicle.
Config.VehiclePlacement.ExcludedClassesarray{}Vehicle classes that refuse a laptop. For example, { 8, 13 } excludes motorcycles and cycles.
Config.VehiclePlacement.MinSurfaceDotnumber0.55How level a panel must be to accept the laptop. 1 is perfectly flat.
Config.VehiclePlacement.SurfaceOffsetnumber0.0Extra lift off the panel in meters.
Config.VehiclePlacement.AnchorLostMsnumber20000Milliseconds a vehicle can stay unreachable before it counts as gone and the laptop goes back to whoever placed it.
Config.VehiclePlacement.FocusMaxDistancenumber4.5The screen closes if the vehicle carries the laptop further than this many meters from the operator.
Features#
Exchange#
Crypto and stock trading.
Config.Exchange.TradeFeeBpsnumber25Trade fee in basis points. 25 equals 0.25 percent.
Config.Exchange.MinNotionalnumber1Smallest trade value in fiat. Keep it at 1 or above so zero-fee dust trades are rejected.
Config.Exchange.MaxSlippageBpsnumber200Maximum drift in basis points between the displayed quote and the fill price. 200 equals 2 percent. 0 disables the check.
Config.Exchange.StaleQuoteMsnumber30000A protected fill whose quote is older than this many milliseconds is rejected.
Config.Exchange.OrderPollIntervalMsnumber5000Limit-order and price-alert watcher cadence in milliseconds.
Simulated market engine#
Prices come from a simulation that runs on your server. There is no outbound
HTTP call anywhere in the engine. The traded universe itself is declared in
shared/assets.lua; this block tunes how the engine behaves. The two dials that
change the feel of the market most are Speed and Events.MeanMinutes.
Config.Exchange.MarkettableEngine tuning for the simulated market.
Config.Exchange.Market.EnabledbooleantrueMaster toggle for the market engine.
Config.Exchange.Market.Seedstring'nx-market-v4'Seed for the synthetic price history.
Changing the seed rerolls history only while no player holds any asset. Once players hold assets the existing history is kept, because a reroll would destroy the valuation basis of every portfolio.
Config.Exchange.Market.TickIntervalMsnumber5000How often prices move, in milliseconds. Also the floor for live price refreshes.
Config.Exchange.Market.BackfillDaysnumber30Days of history generated on the first boot.
Config.Exchange.Market.Speednumber4.0Market clock. 4.0 means one real day carries four market days of movement.
Config.Exchange.Market.Volatilitynumber1.0Multiplies every asset's configured volatility. 1.0 leaves it as configured.
Config.Exchange.Market.EventstableNews events that move prices server-wide.
Config.Exchange.Market.Events.EnabledbooleantrueWhether news events fire at all.
Config.Exchange.Market.Events.MeanMinutesnumber45Average real minutes between news events, server-wide.
Config.Exchange.Market.Events.Magnitudenumber1.0Event size multiplier. 2.0 is twice as violent.
Config.Exchange.Market.PlayerImpacttableWhether settled player trades nudge the price. Off by default.
Config.Exchange.Market.PlayerImpact.EnabledbooleanfalseWhen true, a player's settled trades move the price, never past the round-trip trade fee. It is forced off when TradeFeeBps is 0.
Config.Exchange.Market.PlayerImpact.Strengthnumber0.15Nudge size per dollar traded, from 0 to 1.
Config.Exchange.Market.PlayerImpact.HourlyAccountAdvCapnumber0.25Largest fraction of an asset's daily volume one account can move per hour.
Config.Exchange.Market.Spreadtable{ BaseBps = 8 }Half-spread at top liquidity, in basis points. 8 equals 0.08 percent.
Config.Exchange.Market.Volumetable{ NotionalPerDay = 6000000, EquityMult = 0.65 }Traded value per day at liquidity 1.0, with a separate multiplier for equities.
Config.Exchange.Market.MarketHourstableOpening hours for stocks. Off by default. Crypto never freezes either way.
Config.Exchange.Market.MarketHours.EnabledbooleanfalseWhether stock trading closes outside market hours.
Config.Exchange.Market.MarketHours.OpenHournumber9.5Opening time in server-local hours. 9.5 is 09:30.
Config.Exchange.Market.MarketHours.CloseHournumber16.0Closing time in server-local hours. 16.0 is 16:00.
Config.Exchange.Market.MarketHours.Daysarray{ 2, 3, 4, 5, 6 }Trading days, where 1 is Sunday and 7 is Saturday.
Config.Exchange.Market.RetentiontableDays each chart resolution is kept. Daily candles are kept forever.
Config.Exchange.Market.Retention.OneMinDaysnumber2Days of one-minute candles.
Config.Exchange.Market.Retention.FiveMinDaysnumber14Days of five-minute candles. The 24 hour change is read from these, so keep it at 1 or above.
Config.Exchange.Market.Retention.HourDaysnumber90Days of hourly candles.
Casino#
Config.Casino.BlackjackBetsarray{ 10, 25, 50, 100 }Selectable bet amounts for Blackjack.
Config.Casino.HiLoBetsarray{ 10, 25, 50, 100 }Selectable bet amounts for Hi-Lo.
Config.Casino.VideoPokerBetsarray{ 25, 50, 100, 250 }Selectable bet amounts for Video Poker.
Config.Casino.RouletteBetsarray{ 10, 25, 50, 100 }Selectable bet amounts for Roulette.
Config.Casino.MaxPayoutnumber1000000Absolute ceiling on a single payout in any game. Hi-Lo multipliers compound with no natural cap, so this clamps the pot. 0 removes the cap.
Config.Casino.PayoutstableBlackjack payout multipliers.
Config.Casino.Payouts.BlackjackWinnumber2.0Payout multiplier for a standard Blackjack win.
Config.Casino.Payouts.Blackjacknumber2.5Payout multiplier for a natural blackjack.
Config.Casino.Payouts.BlackjackPushnumber1.0Payout multiplier for a push, returning the stake.
Config.Casino.HiLotableHi-Lo pays fair odds per call, computed live from the remaining deck.
Config.Casino.HiLo.HouseEdgenumber0.05House hold per call. Expected value stays at 0.95 at any streak length.
Config.Casino.HiLo.MaxPerGuessMultipliernumber20.0Cap on the multiplier offered for a single call.
Config.Casino.VideoPokerPaytabletableMap of hand name to payout multiplier. Shape: [handName] = number.
Config.Casino.VideoPokerPaytable = { ['Royal Flush'] = 250, ['Straight Flush'] = 50, -- Four of a Kind 25, Full House 9, Flush 6, Straight 4, -- Three of a Kind 3, Two Pair 2, Jacks or Better 1, Nothing 0}...
Config.Casino.RoulettePayoutstableMap of bet type to payout multiplier. Shape: [betType] = number.
Config.Casino.RoulettePayouts = { straight = 35, split = 17, -- street 11, corner 8, sixline 5, dozen 2, column 2, -- red 1, black 1, even 1, odd 1, low 1, high 1}...
Darknet#
Darknet and black market.
Config.Darknet.EnabledbooleantrueMaster toggle for the darknet app.
Config.Darknet.AccessItemstring'usb'Inventory item required to enter the darknet.
The usb item must exist in ox_inventory. See Installation.
Config.Darknet.ListingFeenumber0Flat fee to create a player-run listing.
Config.Darknet.MinPricenumber250Minimum price for a player-run listing.
Config.Darknet.MaxPricenumber500000Maximum price for a player-run listing.
Config.Darknet.PayInCryptotableCharges darknet purchases from the buyer's coin wallet instead of cash.
Config.Darknet.PayInCrypto.EnabledbooleantrueCharge purchases from the buyer's coin wallet at the live exchange rate. Catalog prices stay in fiat. false restores cash payments.
Config.Darknet.PayInCrypto.Symbolstring'NXC'Coin used to settle darknet purchases. It must be a coin declared in shared/assets.lua. The shipped coins are NXC, VWC, BLTR, and CHOP. An unknown symbol fails every purchase.
Config.Darknet.PickuptableCourier pickup point for physical orders. The hint fields control the in-world marker that points the player toward the pickup once a delivery is ready.
Config.Darknet.Pickup = { coords = vector4(-1361.3589, -932.6345, 9.7058, 305.4851), model = 's_m_m_dockwork_01', scenario = 'WORLD_HUMAN_CLIPBOARD', -- label = 'Collect Delivery', -- unset = the player's language icon = 'fa-solid fa-box-open', distance = 2.0, hintRadius = 120.0, hintDuration = 300, hintClearDistance = 3.0,}Config.Darknet.DropPointsarrayPlayer-to-player hand-over points. A player listing is a courier job: the seller carries the goods to the closest of these contacts and hands them over, and only then does the listing go live. The buyer collects at one of them, picked at random per order. Leave the list empty and both legs use the Pickup contact. Catalog orders always use Pickup. Shape: { coords, model, scenario }, with optional label and distance per entry. The default ships 3 entries.
{ coords = vector4(717.28, -1088.79, 22.17, 178.62), model = 's_m_y_dealer_01', scenario = 'WORLD_HUMAN_SMOKING' },-- Port of LS container yard, Little Seoul service alley...
Config.Darknet.SpawnDistancenumber120.0Metres within which the courier and the hand-over contacts appear. They are created as a player approaches, removed 30 m further out, and re-created if they go missing. Optional: without the key the default is used.
Config.Darknet.PickupHoursnumber48Hours a paid order waits at its contact. In a player-to-player sale the buyer's money is held until they collect: the seller is paid at collection, and if the window runs out the buyer is refunded. Catalog orders are paid at purchase.
Config.Darknet.ExpiredItemsstring'return'What happens to goods nobody collected. One of return, which sends them back for the seller to pick up, or forfeit, which destroys them. A player-to-player sale always returns the goods to the seller and refunds the buyer; forfeit applies only to sales made before 1.16.0.
Config.Darknet.CatalogarrayProducts in two shapes. Item products deliver a real inventory item through the courier pickup after a delay. Data-file products land instantly in the buyer's Downloads and are cosmetic. The default ships 5 entries: 3 item products and 2 data files. The item fields must reference items that exist in ox_inventory. See Installation.
-- item product: { id, label, item, amount, price, delivery }{ id = 'lockpick_adv', label = 'Advanced Lockpick', item = 'advanced_lockpick', amount = 1, price = 2500, delivery = 180 },-- data-file product: { id, label, category = 'datafile', price, description, file = { name, content } }{ id = 'df_plates', label = 'Scraped Plate Registry', category = 'datafile', price = 3200, description = '...', file = { name = 'plate_registry_dump.csv', content = '...' } },...
Config.Darknet.DataFilesarray{}Your own purchasable data files, in the same shape as the datafile catalog entries. Kept in a separate list so script updates never touch it. The body may be inline through content, or read server-side from a path relative to the resource root through contentFile.
Browser sites#
Config.Browser.Sites.AutoMarketbooleanfalseShows the auto.market.lc site in the browser (bookmark, start page and search). Off, the address answers not found. The Vehicles app does the same job.
Config.Browser.Sites.JobsbooleantrueShows the jobs.lc site in the browser (bookmark, start page and search). Off, the address answers not found. The Jobs app does the same job and is not affected.
Config.Browser.Pinnedarray{}Sites added to every player's bookmarks bar and browser start page, such as a company's own .lc site. Each entry is an address ('pizzaplanet.lc') or { url = 'pizzaplanet.lc', label = 'Pizza Planet' }; without a label the site's own title is used. Each account gets a pin once and may remove it; a removed pin stays removed, and a site added later reaches everyone on their next browser open.
Vehicle marketplace#
Config.VehicleMarket.EnabledbooleantrueMaster toggle for the marketplace app.
Config.VehicleMarket.ListingFeenumber0Flat fee charged to the seller to create a listing.
Config.VehicleMarket.TaxPercentnumber0Percentage deducted from the sale price on a successful purchase.
Config.VehicleMarket.MinPricenumber1000Minimum allowed listing price.
Config.VehicleMarket.MaxPricenumber2500000Maximum allowed listing price.
Jobs hub#
Config.JobsHub.EnabledbooleantrueMaster toggle for the jobs app.
Config.JobsHub.ApplicationWebhooksbooleanfalseDiscord mirroring of new applications. The in-app flow is intended, where bosses review applications in the Jobs app and each decision emails the applicant. true also posts each new application to that job's webhook.
Webhook URLs belong in Config.JobsHubWebhooks in config_server.lua, which
never downloads to players.
Config.JobsHub.JobsarrayJob definitions. Shape: { id, label, description, requirements, questions }, where each question is { id, label, placeholder, required }. The default ships 3 entries (police, ems, mechanic), each with two questions.
{ id = 'police', label = 'Los Santos Police Department', description = '...', requirements = '...', questions = { { id = 'availability', label = 'Availability', placeholder = '...', required = true }, },},...
Website builder#
Bosses of any job, per AllowedRanks, can build a public company site addressable by a custom slug such as lscustoms.lc.
Config.SiteBuilder.EnabledbooleantrueMaster toggle for the website builder.
Config.SiteBuilder.AllowedRankstableRank gate. Per-job entries are keyed by grade name or grade level, with a default fallback.
Config.SiteBuilder.AllowedRanks = { ['default'] = { ['boss'] = true, ['chief'] = true, ['manager'] = true }, -- per-job overrides keyed by grade name or grade level}...
Config.SiteBuilder.Slug.MinLengthnumber3Minimum slug length.
Config.SiteBuilder.Slug.MaxLengthnumber32Maximum slug length.
Config.SiteBuilder.Slug.ReservedarraySlugs that can never be claimed. Static browser routes are reserved automatically server-side. The default ships 22 entries.
Config.SiteBuilder.Slug.Reserved = { 'home', 'manage', 'admin', 'www', 'site', 'sites', 'help', 'support', -- about, contact, login, logout, browser, search, index, mail, email, -- newspaper, weather, marketplace, casino, records}...
Config.SiteBuilder.Limits.MaxBlocksnumber60Maximum content blocks per site.
Config.SiteBuilder.Limits.MaxJobsnumber20Maximum job openings per site.
Config.SiteBuilder.Limits.MaxProductsnumber50Maximum products per site.
Config.SiteBuilder.Limits.MaxInquiriesShownnumber200Maximum inquiries shown to a site owner.
Config.SiteBuilder.Limits.MaxReviewsShownnumber200Maximum reviews shown on a site.
Config.SiteBuilder.Limits.InquiryBodyMaxnumber1500Character cap on an inquiry body.
Config.SiteBuilder.Limits.ReviewBodyMaxnumber600Character cap on a review body.
Config.SiteBuilder.AllowedImageHostsarray{ 'cdn.discordapp.com', 'media.discordapp.net', 'i.ibb.co', 'raw.githubusercontent.com' }Extra image hosts allowed in typed image-URL fields. Imgur and anything uploaded through the laptop are always allowed. Published sites load these to visitors, so only add hosts you trust with visitor IPs. Matching is exact host, or a leading dot for subdomains.
Config.SiteBuilder.DefaultTheme.palettestring'midnight'Legacy palette id.
Config.SiteBuilder.DefaultTheme.accentstring'#00bcff'Accent color for new sites. It must be an sRGB value in hex, rgb(), or hsl() form. oklch() is not supported.
Config.SiteBuilder.DefaultTheme.fontstring'sora'Default site font.
Config.SiteBuilder.DefaultTheme.kitstring'maze'One of the eight design kits.
Config.SiteBuilder.DefaultTheme.densitystring'standard'Layout density. One of compact, standard, or spacious.
Config.SiteBuilder.DirectorytableDirectory-site SDK, the browser counterpart of the external apps SDK. Other resources publish .lc browser sites through an export. A registered slug is reserved against player sites.
Publishing directory sites from another resource is covered in the SDK guide.
Config.SiteBuilder.Directory.EnabledbooleantrueMaster toggle. false makes every registration call be ignored.
Config.SiteBuilder.Directory.AllowarraynilSlug allowlist. nil or empty lets any slug register. A non-empty list restricts registration to those slugs.
Config.SiteBuilder.Directory.Denyarray{}Slugs that can never register.
Config.SiteBuilder.Directory.MaxSitesnumber24Ceiling on the number of registered directory sites.
Email addresses#
Every account's address is <username>@<domain>, the same on the laptop and on
nx_phone. A player can still be reached by @handle.
Config.Mail.Domainstring'auto'The mail domain, for example 'yourcity.com'.
'auto' uses the nx_mail_domain convar when it is set. Otherwise it builds a
.com domain from your sv_projectName (or sv_hostname), and falls back to
lsmail.lc. A value that is not a valid domain falls back to the same rule and
prints a warning. After you change the domain, mail sent to the old one keeps
arriving.
Config.Mail.LegacyDomainsarray{ 'lsmail.lc' }Older domains that still deliver to the matching account.
Config.Mail.KeepOldNamesbooleantrueWhether a renamed account still receives mail sent to its old username.
Newsroom#
The news desk app. Reporters write, edit and publish stories with pictures, sorted into categories. Editors can edit anyone's story and publish Breaking news, which sends a notification to every online player's laptop. With nx_phone running, the same stories appear in its Bulletin app.
Config.Newsroom.EnabledbooleantrueMaster toggle for the Newsroom app.
Config.Newsroom.Jobstable{ reporter = 0, weazel = 0 }Who can write. Each key is a job name and its value is the lowest grade that gets the app.
Config.Newsroom.EditorGradestring | number'boss'Who can edit any story and publish Breaking news. 'boss' means the job's boss grade and up. A number means that grade and up.
A job with no boss grade makes its highest grade the editor, so every desk has one.
Config.Newsroom.Categoriesarray{ 'city', 'crime', 'business', 'sport', 'weather', 'opinion' }Story categories, in the order the app shows them.
Config.Newsroom.BreakingCooldownMinnumber10Minutes between Breaking stories, server-wide.
Config.Newsroom.BreakingHoursnumber6How many hours the front page shows a Breaking story.
Config.Newsroom.ExportResourcesarray{ 'nx_phone' }Resources allowed to read and write the news desk for a player through the Newsroom exports. nx_phone's Bulletin uses it.
Employees#
The Employees app runs a business from the computer: staff, hiring by job offer, wages and payslips, company funds and personnel files, for every job. It works with or without nx_employeemanagement, and both share the same data. While nx_employeemanagement 2.2.0 or newer runs, its own settings decide ranks, pay rules and limits so both apps agree, and the values below apply only when it is absent.
Config.Business.EnabledbooleantrueMaster toggle. false removes the Employees app and stops the pay engine.
Config.Business.AllowedRankstable{ default = { boss = true, chief = true, manager = true } }Boss grades, by grade name or number, per job. The default entry covers every job not listed. QBCore and Qbox isboss grades count too, and a job's top grade is its owner.
Config.Business.Permissions.EnabledbooleantrueWhether bosses can give other grades access from the app's Access page. false means only bosses manage.
Config.Business.SelfServicebooleantrueWhether employees see their own hours, pay and personnel file.
Config.Business.ExcludeJobsarray{}Jobs the app never manages, for example { 'police' }.
Config.Business.Trackingtable{ UpdateInterval = 5, TrackOnlyOnDuty = true }Hour tracking. UpdateInterval is the minutes between tracking ticks. TrackOnlyOnDuty counts hours only while the framework has the player on duty.
Config.Business.MultiJobtable{ Provider = 'none', Table = 'user_jobs', FallbackJob = 'unemployed' }Multijob support. Provider is 'none', 'core_multijob' or 'nx_phone'. Table is core_multijob's table, and FallbackJob is the job given to someone removed from their last job.
With 'nx_phone', add 'nx_computer' to nx_phone's
Config.Shift.MultiJob.ExportResources.
Config.Business.CustomJobstable{ Enabled = false, Jobs = {} }Businesses that are not framework jobs. Same format as nx_employeemanagement's Config.CustomJobs.
Config.Business.Offerstable{ Enabled = true, ExpiryHours = 48, MaxPendingPerJob = 10, MaxPendingPerCandidate = 3, NearbyRadius = 10.0 }Hiring by job offer. An offer arrives by email with Accept and Decline, and the player's job changes only when they accept. Offers reach offline players and expire after ExpiryHours. NearbyRadius is how close, in meters, a player must be to show in the boss's list of people nearby.
Config.Business.PayrolltableWages, paid from the company account for tracked hours.
Config.Business.Payroll.EnabledbooleantrueMaster toggle for payroll.
Config.Business.Payroll.Modestring'tablet''tablet' pays per tracked hour from here. 'framework' leaves salaries to your framework, so nobody is paid twice.
Config.Business.Payroll.PerJobModestable{}Mode per job, for example { police = 'framework' }.
Config.Business.Payroll.MaxWagePerJobtable{ default = 5000 }Largest wage a boss can set. The default entry covers every job not listed.
Config.Business.Payroll.HoursPerPayCyclenumber40Used to turn a grade's salary into an hourly rate when no rate is set.
Config.Business.Payroll.MoneyDecimalsnumber | string'auto'Decimal places for every amount. 'auto' uses 0 on ESX and 2 on QBCore and Qbox.
Config.Business.Payroll.OvertimePeriodstring'week''week' counts overtime per Monday-to-Sunday week. 'payout' counts it since the last payment.
Config.Business.Payroll.ResetHistoryOnPaybooleanfalseDelete an employee's fully paid days after each payment. Off keeps the hours on the charts.
Config.Business.Payroll.HistoryRetentionDaysnumber365Fully paid days older than this are removed once a day. Unpaid days are never removed.
Config.Business.Payroll.Societytable{ UseSocietyFunds = true, Backend = 'auto', QBTableName = 'management_funds' }The company account. UseSocietyFunds takes wages and payouts from it. Backend is auto, nx_realbanking, esx_addonaccount, fd-banking, qb-management, qb-banking, renewed-banking or database. auto picks nx_realbanking first, then your framework's society or banking resource. QBTableName is the qb-management table.
Config.Business.Payroll.AutoPaytable{ Enabled = true, Schedule = 'weekly', PayDay = 1, PayHour = 10, Interval = { Unit = 'minutes', Value = 30 }, CatchUpHours = 24 }Automatic pay. Schedule is daily, weekly, biweekly, monthly or interval. PayDay is the weekday (1 = Monday) or the day of the month, and PayHour the hour. interval pays every Interval instead. A payday missed while the server was down still runs within CatchUpHours.
Config.Business.Payroll.Invoicestable{ MaxPendingPerEmployee = 5, AutoApproveUnder = 1000, RequireApprovalOver = 5000 }Pay requests from employees. Requests under AutoApproveUnder are approved without review, and requests over RequireApprovalOver always need a boss.
Config.Business.Payroll.DefaultRatestable{ hourly = 25.0, overtime_multiplier = 1.5, overtime_threshold = 1500 }Rates for a grade with no rule of its own. overtime_threshold is in minutes per overtime period.
Config.Business.Payroll.Limitstable{ MaxInvoice = 50000, MaxBonus = 10000, MaxPayout = 100000, MaxSocietyTransfer = 1000000, WithdrawPerDayNonOwner = 25000 }Caps on a single pay request, bonus, payout and company deposit or withdrawal, and on what anyone below the owner can withdraw from the company per day.
Config.Business.Payroll.Reportingtable{ Enabled = true, MaxRangeDays = 93 }Hours and payroll reports exported to Files, and the longest range one report covers.
Config.Business.Payslipstable{ Mail = true, Pdf = true }After each payment, a payslip email and a PDF in the employee's Downloads.
Config.Business.Announcements.MaxFanOutnumber50Most staff one announcement mails.
Config.Business.Records.EnabledbooleantrueWarnings, reviews, commendations and notes in personnel files.
Config.Business.Files.EnabledbooleantrueDocuments in personnel files. Each file is capped at Config.Filesystem.MaxFileBytes.
Config.Business.PayNotifytableThe You were paid message. It goes to the phone's Wallet when nx_phone runs, and is a toast otherwise.
Payments from one job that land close together become one message.
Enabled(defaulttrue): send the message at all.Phone(default'auto'):'auto'uses nx_phone when it runs.falsealways shows a toast.FallbackToast(defaulttrue): show a toast when the player carries no phone.CoalesceSeconds(default20): payments from one job inside this window become one message.MinAmount(default1): a total under this waits for the next payment instead of getting its own message.
A player who turned Wallet notifications off on the phone gets no toast
either. To send the message to another phone, edit FW.PayNotify in
server/business/bridge.lua, an open file.
Config.Business.LiveFundstable{ Enabled = true, PollSeconds = 10 }An open Employees window follows the company balance live, checking every PollSeconds seconds, and shows the company's account number.
Email forwarding#
Players can forward a copy of every email they receive to other handles, or to everyone who works the same job. Forwarded copies go one level deep: a forwarded mail never forwards again.
Config.EmailForwarding.EnabledbooleantrueMaster toggle. false hides the whole Forwarding pane in the Email app.
Config.EmailForwarding.MaxTargetsnumber10Maximum handle rules per account. The job rule is counted separately.
Config.EmailForwarding.AllowJobTargetsbooleantrueWhether the forward-to-everyone-in-my-job toggle is offered.
Config.EmailForwarding.MaxJobFanOutnumber50Maximum colleagues one job rule may deliver to per email.
Media uploads#
Player uploads go through FiveManage at fivemanage.com. The server validates every
upload for size, sniffed type, and rate, then relays it with your API token. The
token is a secret set in config_server.lua.
Config.Media.Providerstring'fivemanage'Upload provider. FiveManage is the only one supported.
Config.Media.MaxImageBytesnumber6 * 1024 * 1024Ceiling per decoded image in bytes. FiveManage plan limits still apply.
Config.Media.AllowedTypesarray{ 'png', 'jpg', 'gif', 'webp' }Allowed image types, sniffed from magic bytes and never trusted from the client. jpg covers jpeg.
Config.Media.AllowPdfbooleantrueWhether Docs offers Export to PDF, which saves a PDF file to the player's Documents folder. false hides the export button.
Config.Media.RateLimit.Windownumber60Rate-limit window in seconds.
Config.Media.RateLimit.Burstnumber8Uploads allowed per window. 0 turns the limit off.
Config.Media.PageSizenumber60Photos gallery page size.
Config.Media.MaxPerAccountnumber500Maximum stored rows per account. The oldest are pruned on upload.
Config.Media.PhoneSynctableMirrors lb-phone gallery photos into the laptop's Photos app, in a new folder under Pictures.
Nothing is re-uploaded. The phone's hosted link is copied, so deleting the laptop copy never touches the phone's photo. This needs lb-phone's phone_photos table to be readable by the same database user as nx_computer, which holds on a normal one-database install.
Config.Media.PhoneSync.Enabledstring | boolean'auto'One of 'auto', which mirrors only while lb-phone is running, true, or false.
Config.Media.PhoneSync.IntervalSecnumber30Seconds between checks for new phone photos.
Config.Media.PhoneSync.Folderstring'Phone'Folder name under Pictures.
Config.Media.PhoneSync.Backfillbooleanfalsetrue also imports photos taken before install.
Config.Media.PhoneSync.NxPhonestring | boolean'auto'With nx_phone 0.0.18 or newer, the phone and the laptop share one Photos library per character: phone photos land in Pictures\\Phone and laptop camera shots and images appear on the phone. 'auto' turns it on while nx_phone runs; false turns it off. Photos taken before the update are not copied.
Phone Mirroring#
The Phone Mirroring app shows the nx_phone the player carries in a window on the laptop, with the phone's notifications on the laptop. It appears only while nx_phone 0.0.19 or newer is running and the player carries a set-up phone. Opening the phone in your hand ends it.
Config.PhoneMirroring.EnabledbooleantrueOffer the Phone Mirroring app.
Config.PhoneMirroring.Resourcestring'nx_phone'The phone resource. Change it only for a renamed nx_phone.
Phone bridge#
Sends a phone notification when something lands on the laptop, so a player with the laptop packed away still hears about it. It is optional: with no phone resource running it does nothing, and it is never a dependency.
Config.PhoneBridge.Enabledstring | boolean'auto'One of 'auto', which forwards only while the phone resource is running, true, or false.
Config.PhoneBridge.Resourcestring'lb-phone'Phone resource name. Change it for a renamed fork.
Config.PhoneBridge.Eventstable{ Email = true, Message = true }What gets forwarded. Email covers new mail in the Email app, Message covers new chats in the Messages app.
You can add your own keys here and send them with the exports['nx_computer']:PhoneNotify(target, kind, payload) export.
Config.PhoneBridge.Appstable{ Email = 'Mail', Message = 'Messages' }The lb-phone app id each event shows under. This sets the notification icon.
Config.PhoneBridge.CoalesceMsnumber4000Events inside this window in milliseconds are grouped into one notification, such as 3 new emails.
Config.PhoneBridge.MaxPerMinnumber8Hard ceiling of phone notifications per player per minute.
Filesystem#
Explorer, desktop, and Recycle Bin.
Config.Filesystem.MaxItemsnumber600Total items per account including the Recycle Bin. The disk reports full past this.
Config.Filesystem.MaxFileBytesnumber16000Size ceiling per text file in bytes.
Config.Filesystem.MaxCopyNodesnumber120Maximum nodes one copy or paste may duplicate. Protects the database.
Camera#
The camera item opens photo mode and requires the screencapture resource.
Config.Camera.EnabledbooleantrueMaster toggle for photo mode.
Config.Camera.ItemNamestring'camera'Inventory item that opens photo mode.
The camera item must exist in ox_inventory. See Installation.
Config.Camera.Cooldownnumber1500Milliseconds between shots.
Config.Camera.Encodingstring'jpg'Image encoding. One of jpg, png, or webp.
Config.Camera.UploadMbpsnumber1Pacing in megabits per second for the fallback upload path. Unused while the screencapture resource is running.
Config.Camera.GridbooleantrueWhether the rule-of-thirds grid shows by default.
Config.Camera.LensbooleantrueOptical lens treatment on the viewfinder. false gives a flat viewfinder, which is lighter on low-end clients.
Config.Camera.LookSensitivitynumber6.0Mouse-look speed in photo mode.
Config.Camera.AllowMovementbooleantrueWhether the player can walk and sprint while framing a shot. false keeps them standing still.
Config.Camera.MinFovnumber18.0Maximum zoom-in. Lower is closer.
Config.Camera.MaxFovnumber70.0Zoomed-out default framing.
Config.Camera.Soundtable{ name = 'Camera_Shoot', set = 'Phone_SoundSet_Default' }Shutter sound from a frontend soundset.
Config.Camera.RateLimittable{ Burst = 20, Window = 60 }Server-side upload anti-spam, separate from laptop uploads.
Config.Camera.DebugbooleanfalseDeveloper-only prop placement tuner for the camera. Keep it false in production.
Config.Camera.ProptableHeld prop and idle anim while shooting. The position and rotation are tuned for prop_ing_camera_01 on the right hand. Set Prop to false to disable the held prop.
Config.Camera.Prop = { model = 'prop_ing_camera_01', bone = 28422, pos = vector3(0.21, -0.04, -0.04), rot = vector3(-85, 75, 97),}Config.Camera.FiltersarrayVisual styles cycled with the F key. Each maps to a GTA timecycle modifier baked into the frame. Shape: { id, name, modifier, strength }, where modifier may be nil. The default ships 6 entries.
{ id = 'normal', name = 'Normal', modifier = nil, strength = 0.0 },{ id = 'mono', name = 'Mono', modifier = 'NG_deathfail_BW_base', strength = 1.00 },-- sepia, vintage, vivid, noir...
Polaroid prints#
A camera shot can be printed into a physical polaroid item. Players hold it up, place it on a wall or table, and with the free nx_write resource draw on it.
Config.Camera.Polaroid.EnabledbooleantrueMaster toggle for the print path.
Config.Camera.Polaroid.ItemNamestring'polaroid'Inventory item minted by a print.
The polaroid item must exist in ox_inventory. See Installation.
Config.Camera.Polaroid.PrintModestring'prompt'When a shot is printed. One of prompt, which asks per shot, auto, which always prints, or off.
Config.Camera.Polaroid.RequireFilmbooleanfalsetrue consumes one film item per print.
Config.Camera.Polaroid.FilmItemstring'polaroid_film'Inventory item consumed when RequireFilm is true.
Config.Camera.Polaroid.MaxMetadataCharsnumber512Character cap on the capture metadata stored with a print.
Config.Camera.Polaroid.FilmLookbooleantrueWhether the printed card gets an instant-film look. The saved photo in the Photos app is untouched either way.
Config.Camera.Polaroid.RateLimittable{ Burst = 6, Window = 60 }Print-path rate limit. Burst prints per Window seconds.
Config.Camera.Polaroid.Inspect.CullDistancenumber25Meters within which a polaroid renders its photo.
Config.Camera.Polaroid.Inspect.TargetDistancenumber1.6ox_target pickup range on a placed polaroid, in meters.
Config.Camera.Polaroid.Place.EnabledbooleantrueWhether a held polaroid can be placed in the world.
Config.Camera.Polaroid.Place.AllowedSurfacestable{ wall = true, table = true }Surface kinds a polaroid may be placed on.
Config.Camera.Polaroid.Place.MaxPlaceDistancenumber5Maximum placement distance in meters.
Config.Camera.Polaroid.Place.MaxActivenumber24Maximum placed polaroids per character. 0 is unlimited.
Config.Camera.Polaroid.Place.RateLimittable{ Burst = 10, Window = 60 }Placement rate limit. Burst placements per Window seconds.
Config.Camera.Polaroid.WritetableDrawing on a held polaroid. Needs the free nx_write resource. Without it every part of this block no-ops.
Config.Camera.Polaroid.Write.EnabledbooleantrueWhether drawing on a held polaroid is offered.
Config.Camera.Polaroid.Write.Keynumber74Control id that opens the drawing session while inspecting. 74 is the H key.
Projector#
The projector pairs with the laptop as a third display and throws the picture onto the wall its lens faces. It comes from interiors that carry a v_res_mountedprojector or from a placeable item. See Displays for pairing, placement, and calibration.
Config.Projector.EnabledbooleantrueMaster toggle for the projector display.
Config.Projector.Itemstring'projector'Placeable projector item. nil or empty limits the feature to world-mapped projectors.
The projector item must exist in ox_inventory. See Installation.
Config.Projector.Modelstring'v_res_mountedprojector'Projector prop model.
Config.Projector.LensOffsettablevector3(0.0, 0.0, -0.78)Lens offset that seeds the raycast deciding where the image lands.
Config.Projector.LensForwardtablevector3(1.0, 0.0, 0.0)Forward direction of the lens raycast.
Config.Projector.BeamOffsettablevector3(-0.15, 0.18, -0.075)Where the visible beam starts. nil uses the same point as LensOffset.
Config.Projector.MaxThrownumber24.0Maximum meters from lens to wall before no surface is reported.
Config.Projector.MinThrownumber0.8Closer than this leaves no room for an image.
Config.Projector.ThrowRationumber0.55Image width equals distance times this ratio, clamped, at 16 by 9.
Config.Projector.MinWidthnumber0.9Minimum image width in meters.
Config.Projector.MaxWidthnumber6.0Image width stops growing here.
Config.Projector.WallGapnumber0.022Meters the image floats off the wall, guarding against z-fighting.
Config.Projector.ResWnumber1280Projected image width in pixels.
Config.Projector.ResHnumber720Projected image height in pixels.
Config.Projector.Alphanumber240Image opacity. Below 255 gives a slightly translucent beamer wash.
Config.Projector.FlipImagebooleanfalseFlip the image if an odd surface renders it rotated 180 degrees.
Config.Projector.DetectRadiusnumber8.0Maximum laptop to projector distance for the connect option.
Config.Projector.PlaceDistancenumber6.0Item placement distance, mounted against a ceiling.
Config.Projector.Calibration.EnabledbooleantrueWhether the player-facing calibrate option is offered.
Config.Projector.Calibration.MaxVerticalnumber0.50Meters of up and down lens shift.
Config.Projector.Calibration.MaxHorizontalnumber0.25Meters of left and right lens shift.
Config.Projector.Calibration.MinScalenumber0.75Lower bound of the zoom range, times the throw-derived size.
Config.Projector.Calibration.MaxScalenumber1.25Upper bound of the zoom range.
Config.Projector.Calibration.Stepnumber0.02Meters per arrow nudge. Hold Shift for five times the step.
Config.Projector.Calibration.ScaleStepnumber0.02Zoom change per scroll notch.
Config.Projector.Camera.fovnumber50.0Field of view while the projection is focused.
Config.Projector.Camera.marginnumber1.18Framing margin around the projection.
Config.Projector.Camera.distancenumbernilCamera distance. nil auto-frames the projection.
Config.Projector.Beam.EnabledbooleantrueWhether the visible light cone renders.
Config.Projector.Beam.Colortable{ r = 226, g = 233, b = 255 }Base beam color.
Config.Projector.Beam.Brightnessnumber0.12Beam brightness.
Config.Projector.Beam.Hardnessnumber0.17Beam edge hardness.
Config.Projector.Beam.Falloffnumber25.0Beam falloff rate.
Config.Projector.Beam.TintFromScreennumber0.7How far the cone blends toward the average on-screen color.
Config.Projector.Beam.Shaft.EnabledbooleantrueWhether the layered light shaft renders.
Config.Projector.Beam.Shaft.Alphanumber10Per-layer alpha from 0 to 255.
Config.Projector.Beam.Shaft.Layersnumber3Nested planes from full cone down to a hot core.
Config.Projector.Beam.Dust.EnabledbooleantrueWhether dust motes render inside the cone.
Config.Projector.Beam.Dust.Effectstring'env_dust_motes_int_hvy'Looped particle effect inside the cone.
Config.Projector.Beam.Dust.Pointsnumber4Emitters spread along the beam.
Config.Projector.Beam.Dust.Scalenumber2.0Dust emitter scale.
Config.Projector.Fx.AdditivebooleantrueAdditive blending for the projected image.
Config.Projector.Fx.Floornumber0.8Per-pixel alpha floor. 0 is physically pure, 1 is a flat screen.
Config.Projector.Fx.Blurnumber0.6Lens defocus in pixels.
Config.Projector.Fx.Chromanumber0.8RGB convergence error in pixels.
Config.Projector.Fx.HotspotbooleantrueWhether the center hotspot renders.
Config.Projector.Fx.Vignettenumber0.34Vignette strength.
Config.Projector.Fx.EdgeFeatherbooleantrueWhether the image edges are feathered.
Config.Projector.Fx.FringebooleantrueWhether color fringing renders.
Config.Projector.Fx.PixelGridnumber0.12LCD screen-door structure opacity. 0 turns it off.
Config.Projector.Fx.GrainbooleantrueWhether film grain renders.
Config.Projector.Fx.GrainOpacitynumber0.12Grain opacity.
Config.Projector.Fx.FlickerbooleantrueWhether the image shimmers by about 1.5 percent.
Config.Projector.Glow.Pushnumber0.27Meters the wall glow sits in front of the surface.
Config.Projector.Glow.Rangenumber2.4Wall glow radius.
Config.Projector.Glow.Intensitynumber1.7Wall glow brightness.
Config.Projector.SyncForAllbooleantrueWhether bystanders see the projected image, beam, and glow.
Config.Projector.SyncRadiusnumber20.0Meters within which bystanders receive projector sync.
Display switcher#
With a paired monitor both screens stay live. Alt and 1 selects the laptop, Alt and 2 selects the monitor. See Displays for the paired-monitor workflow.
Config.DisplaySwitch.EnabledbooleantrueMaster toggle for the display switcher.
Config.DisplaySwitch.HintPositionstring'bottom-center'ox_lib textUI position. One of bottom-center, top-center, left-center, or right-center.
Config.DisplaySwitch.TransitionMsnumber350Camera glide time in milliseconds between displays. Lower is snappier.
Boot sequence#
Config.Boot.CinematicbooleantrueWhether the cinematic boot plays on the first laptop a player opens each session. Later opens always use the short version. false makes every open the short one.
Config.Boot.SleepAfterMsnumber45000Milliseconds before a suspended screen blanks. 0 keeps it lit.
Screen prewarm#
Boots the OS page in the background while a player stands near a closed laptop, so the open shows a live screen right away.
Config.Prewarm.EnabledbooleantrueMaster toggle for screen prewarm.
Config.Prewarm.Distancenumber12.0Meters from a placed, closed laptop at which prewarm starts.
Shared screen#
The open lid, screen glow, and monitor cable always sync to nearby players. This block controls whether the screen content itself is mirrored.
Config.Networking.OpenLaptopForAllbooleantruetrue mirrors the live screen to nearby players within SyncRadius. false keeps screen content private to the operator.
Config.Networking.SyncRadiusnumber12.0Meters within which players see the mirrored screen.
Meetings#
Video calls between laptops. One player creates a meeting and shares its code, and others join by code. Everyone sees each other's character on live video, hears each other, and one person at a time can share their screen. Video goes player to player. Voice rides a pma-voice call channel.
Config.Meetings.EnabledbooleantrueMaster toggle for meetings.
Config.Meetings.MaxParticipantsnumber6Participants per meeting. 12 is the ceiling. Every extra participant costs every camera one more upload.
Config.Meetings.MaxMeetingsnumber25Live meetings server-wide.
Config.Meetings.MaxMinutesnumber180A meeting ends itself after this many minutes.
Config.Meetings.AwayGraceSecondsnumber90A participant away from the laptop for this many seconds drops out.
Config.Meetings.Videotable{ Width = 640, Height = 360, Fps = 15 }Face cam resolution and frame rate per participant.
Config.Meetings.IceServersarray{ { urls = 'stun:stun.l.google.com:19302' } }Relay servers for the player-to-player link.
STUN is enough for most home connections. If some players never get video, add a TURN entry:
{ urls = 'turn:turn.example.com:3478', username = '...', credential = '...' },Config.Meetings.Voice.EnabledbooleantrueWhether meetings carry voice.
Config.Meetings.Voice.ChannelBasenumber900000pma-voice call channels used are ChannelBase + 1, + 2, and so on. Keep this range clear of your phone's channels.
Config.Meetings.Voice.MuteStrategystring'targets'How mute works. With targets, mute stops others hearing you and you keep hearing them. With leave, mute leaves the call channel and you stop hearing too. Use leave if mute misbehaves after a pma-voice update.
Config.Meetings.Webcamtable{ Fov = 38.0, Forward = 0.02, AimUp = 0.02, NearClip = 0.05 }Webcam pose. The webcam sits at the top edge of the screen and looks at the operator.
Operator stance#
While a screen is focused the operator is posed for the surface height. Bands are chosen by height above the floor, highest first, and the first enabled band that fits wins.
Config.Animation.EnabledbooleantrueMaster toggle for the operator stance.
Config.Animation.FreezePedbooleantrueWhether the operator is frozen while posed.
Config.Animation.BlendInnumber4Anim blend-in speed.
Config.Animation.BlendOutnumber-4Anim blend-out speed.
Config.Animation.Align.EnabledbooleantrueWhether the operator is aligned to the surface.
Config.Animation.Align.HeadingbooleantrueWhether heading is adjusted during alignment.
Config.Animation.Align.SlidebooleantrueWhether the operator slides into position.
Config.Animation.Align.Lateralnumber0Lateral alignment offset.
Config.Animation.Align.PosTolerancenumber0.3Position tolerance in meters before a nudge is applied.
Config.Animation.Align.HeadingToleranceDegnumber22Heading tolerance in degrees before a turn is applied.
Config.Animation.Align.MaxNudgenumber0.6Maximum slide distance in meters.
Config.Animation.Align.SettleMsnumber350Settle time in milliseconds after alignment.
Config.Animation.BandsarrayOrdered pose bands. Shape: { Id, Enabled, Min, StandOffset, Flag, Dict, Name }, where Min is the height at which the band applies and Dict and Name are the anim. The default ships 5 entries: stand and kneel enabled, seated, low, and floor disabled.
{ Id = 'stand', Enabled = true, Min = 0.64, StandOffset = 0.726, Flag = 1, Dict = 'anim@amb@warehouse@laptop@', Name = 'idle_a' },{ Id = 'kneel', Enabled = true, Min = 0, StandOffset = 0.5, Flag = 1, Dict = 'amb@medic@standing@kneel@base', Name = 'base' },-- seated, low, floor...
Audio#
Native GTA soundsets only. Retune by swapping any set and name pair.
Config.Audio.EnabledbooleantrueMaster switch for all UI sounds.
Config.Audio.Keystroketable{ enabled = true, throttleMs = 50 }Keystroke tick, throttled so key-repeat does not machine-gun.
Config.Audio.Clicktable{ enabled = true }Left-click tick.
Config.Audio.BootFromEntitybooleantrueWhether the power-on chime plays from the laptop in 3D so bystanders hear it.
Config.Audio.SoundstableMap of sound key to a set and name pair. Shape: [key] = { set, name }. The keys are keystroke, click, boot, notify, success, error, close, and lockout.
Config.Audio.Sounds = { boot = { set = 'GTAO_Exec_SecuroServ_Warehouse_PC_Sounds', name = 'Login' }, notify = { set = 'HUD_MINI_GAME_SOUNDSET', name = 'CONFIRM_BEEP' }, lockout = { set = 'DLC_HEIST_BIOLAB_PREP_HACKING_SOUNDS', name = 'Hack_Failed' },}...
Screen glow#
A lit screen casts colored light onto the player and desk, tinted per zone by colors sampled from the layout.
Config.ScreenGlow.EnabledbooleantrueMaster toggle for the screen glow.
Config.ScreenGlow.DayStartnumber7Hour at which daytime begins. Glow shows outside the daytime window or when inside an interior.
Config.ScreenGlow.DayEndnumber19Hour at which daytime ends.
Config.ScreenGlow.ForceAlwaysbooleanfalsetrue ignores the day and interior gate.
Config.ScreenGlow.Pushnumber0.04Meters the lights sit in front of the screen.
Config.ScreenGlow.Rangenumber0.40Per-light radius in meters.
Config.ScreenGlow.Intensitynumber2.2Per-light brightness.
Config.ScreenGlow.LerpRatenumber6.0Color easing per second. Higher is snappier.
Config.ScreenGlow.Flickernumber0.04Subtle screen flicker. 0 turns it off.
Config.ScreenGlow.NetworkedbooleantrueWhether the owner's zone colors broadcast so bystanders see the glow too.
Config.ScreenGlow.SyncRadiusnumber14.0Meters within which players receive glow updates.
Screen light#
With NX 3D 3.5.0 or newer, a lit laptop or paired monitor casts soft light coloured by what is on screen. On a lit screen the screen glow above steps aside.
Config.ScreenLight.EnabledbooleantrueMaster toggle for the screen light.
Config.ScreenLight.Laptopnumber0.6Laptop screen brightness. 0 turns it off for laptops.
Config.ScreenLight.Monitornumber0.8Paired monitor brightness. 0 turns it off for monitors.
MDT#
The records terminal for police, EMS and fire: cases, evidence, warrants, permits, reports, tickets, dispatch, duty roster, and the audit trail. Access is decided server-side from the live framework job. Officers are on duty automatically while they hold one of the agency's jobs. Ranks mirror your job grades, one MDT rank per grade of the agency's first job, named exactly as your framework names it. The boss grade becomes the command rank. Rename or reorder ranks in your job grades, not here.
Config.MDT.EnabledbooleantrueMaster toggle for the MDT.
Config.MDT.AgenciesarrayOne entry per agency. Shape: { key, label, jobs, pack, charges, service }, where jobs are framework job names and pack picks the template pack: generic (the default), us, or fi. The optional charges field picks the charge list separately from the pack (generic, us, or fi). Leave it out to use the pack's own list. Set it when you want one pack's case types with another pack's charges, for example a Finnish-language server that prefers the US charge codes. Their names are translated into all ten languages. The default ships 1 entry.
The optional service field is 'police' (the default), 'ems' or 'fire'. An EMS or fire agency gets Today, Dispatch, Reports and Department. It writes its own reports from its own templates, blank or from a call, and links calls to them. It never sees records, warrants or police permissions, and its reports cannot become cases. It can find a person by name to fill in a report (see ServicePersonLookup below).
{ key = 'police', label = 'Los Santos Police Department', jobs = { 'police' }, pack = 'generic' },-- { key = 'poliisi', label = 'Poliisi', jobs = { 'police' }, pack = 'fi', charges = 'us' },-- { key = 'ems', label = 'Los Santos Medical Services', jobs = { 'ambulance' }, pack = 'generic', service = 'ems' },...
Config.MDT.UiResourcestringnilName of a separate resource that holds your own build of the MDT screens. nil uses the built-in MDT. If that resource is not started or was built for another nx_computer version, the built-in MDT is used and F8 says why.
Config.MDT.PersonSearchstring'open'Citizen lookup by name, either a single word or a full name. It also reads framework characters. One of open, warrant, which restricts lookup to people with a warrant, or off.
Config.MDT.ServicePersonLookupbooleantrueLets EMS and fire find a person by name. They see the name, date of birth and phone number only: no record, flags or warrants. Works only while PersonSearch is 'open'. false turns it off.
Config.MDT.EvidenceLockersarray{}Evidence-room locations as vector3 values. Empty means no proximity requirement.
Config.MDT.RetentiontableDays a row is kept before the retention sweep removes it.
Config.MDT.Retention.AuditReadDaysnumber14Days audit rows for reads are kept. These are the bulk of the audit trail.
Config.MDT.Retention.AuditDaysnumber180Days audit rows for writes, decisions, and admin actions are kept.
Config.MDT.Retention.UnitTrackDaysnumber30Days of unit position history.
Config.MDT.Retention.BodycamDaysnumber30Days of bodycam clip metadata.
Config.MDT.ShiftAlerttableDiscord ping when an officer asks for backup with nobody else on duty. Webhook URLs go in Config.MDTWebhooks in config_server.lua.
Config.MDT.ShiftAlert.EnabledbooleantrueWhether backup alerts are sent.
Config.MDT.ShiftAlert.CooldownMinutesnumber30Minimum gap between alerts per agency.
Config.MDT.ShiftAlert.DailyCapPerOfficernumber3Alerts one officer can trigger per day.
Config.MDT.FeaturestableOptional MDT modules. All are off by default except Filings; switching one off hides its pages and keeps its data.
Config.MDT.Features.InvestigationsbooleanfalseFull case files: evidence chain, warrants by request, countersigning, the archive and sharing.
Config.MDT.Features.StreetbooleanfalseField cards, gang files, the tip line, witness appeals and reports drafted from calls.
Config.MDT.Features.BodycambooleanfalseThe built-in recorded bodycam, its library and live viewing.
Config.MDT.Features.TacticalMapbooleanfalseThe situation map, GPS trackers and route history.
Config.MDT.Features.RegistersbooleanfalseWarnings, lost property, businesses and device alerts.
Config.MDT.Features.DeptExtrasbooleanfalseStandard procedures, the old audit view and the backup alert.
Config.MDT.Features.FilingsbooleantrueCitizen reports: citizens file crime reports and fine disputes at a station desk, and officers handle them on the Citizen reports page.
Config.MDT.Filings.Pointsarray{ { agency = 'police', coords = vec3(441.0, -980.4, 30.95), label = 'Mission Row' } }Where citizens file. One entry per desk: the department key, the spot, and an optional label. The default is the Mission Row front desk.
Config.MDT.Filings.MaxOpennumber3Open filings one citizen may have at a time.
Config.MDT.Filings.CooldownSecondsnumber120Seconds between two filings by the same citizen at a desk. Filings an officer takes in are not limited.
Config.MDT.Filings.DisputeDaysnumber30How many days back a fine can be disputed.
Config.MDT.Dispatch.Keystable{ Take = 'J', Skip = 'K', Prev = 'RSHIFT', Next = 'RCONTROL', QuickMenu = false, Status = false, Clear = 'U', Panic = false }Default keys for the call card. false leaves a key unbound; players can rebind every key in the game's key settings.
Config.MDT.Bodycam.Providerstring'none'Which bodycam the MDT uses: none, builtin (needs the Bodycam module) or external (another bodycam script through the open adapter).
Config.MDT.JailAdaptertableHand-off to your jail script when a sentence starts serving.
Config.MDT.JailAdapter.Modestring'none'Hand-off style. One of none, custom, export, server_event, or client_event. custom runs your own code in server/mdt/jail.lua, an open file. See Events for each mode's arguments.
Config.MDT.JailAdapter.Exporttable{ resource = '', fn = '' }Export mode target. The named export on the named resource is called with the player source, the sentence in minutes, and a data table.
Config.MDT.JailAdapter.ServerEventstring''Server-event mode target. The event is triggered with the player source, the sentence in minutes, and a data table.
Config.MDT.JailAdapter.ClientEventstring''Client-event mode target. The event is triggered on the sentenced player with the source, the sentence in minutes, and a data table.
Config.MDT.Units.EnabledbooleantrueWhether live unit positions show on the tactical map.
Config.MDT.Tracks.EnabledbooleantrueWhether route history and playback are recorded. Capped by Retention.UnitTrackDays.
Config.MDT.Trackers.EnabledbooleantrueMaster toggle for GPS trackers.
Config.MDT.Trackers.BatteryMinutesnumber120Tracker battery life in minutes. A random variation of plus or minus 10 percent is applied per tracker.
Config.MDT.Trackers.RequireWarrantbooleanfalsetrue refuses tracker attachment without an approved warrant.
Config.MDT.Bodycam.EnabledbooleantrueMaster toggle for bodycam clips. The feature needs the screencapture resource and a FiveManage token in config_server.lua, otherwise it stays dark.
Config.MDT.Bodycam.MaxSecondsnumber60Hard ceiling per clip in seconds, enforced server-side.
Config.MDT.LiveBodycamtableA supervisor watches an on-duty officer's game view inside the MDT. Video goes player to player and the server only carries the handshake. Officers are notified and cannot decline while on duty. Every viewing is on the audit trail.
Config.MDT.LiveBodycam.EnabledbooleantrueMaster toggle for live bodycam.
Config.MDT.LiveBodycam.MaxMinutesnumber10One viewing ends itself after this many minutes.
Config.MDT.LiveBodycam.IceServersarray{ { urls = 'stun:stun.l.google.com:19302' } }Relay servers for the player-to-player link. STUN is enough for most home connections. Add a TURN entry, in the same shape as Config.Meetings.IceServers, for players behind strict NAT.
Config.MDT.Bank.Backendstring'auto'Backend for the financial investigation lens. One of auto, nx_realbanking, or none.
Config.MDT.Phone.EnabledbooleantrueSeized phones, cell tower dumps and device traces in the MDT. Needs nx_phone running.
Config.MDT.External.EnabledbooleanfalseWhether a case or artifact can be shared with another agency.
Dispatch#
Calls for service: automatic alerts, 911 calls, panic and alerts from other
dispatch scripts on a live board. There is no dispatcher seat; officers respond
to calls themselves. Call types, timings and what automatic detection reports
are in data/mdt/dispatch.lua (see Data files).
Config.MDT.Dispatch.EnabledbooleanfalseBuilt-in dispatch. Off by default, so the MDT runs next to the dispatch script you already use: the desk has no Dispatch area, and there are no automatic alerts, no 911 calls on the MDT, no phone MDT app and no in-car Dash. true makes nx_computer your dispatch.
Config.MDT.Dispatch.Keystable{ Status = false, Attach = 'Y', Clear = 'U', Panic = false, Bodycam = 'J' }Default field keys for new players. false leaves an action unbound and '' uses the built-in default. Players rebind them in Settings, Key Bindings, FiveM, and their own choice always wins.
Status: set your status (Available, En route, On scene, Busy, Out of service). Unbound by default, because F5 is taken on most servers; officers set status on the MDT. Its Key Bindings entry isnxmdt_statuskey, so an F5 saved from the old default no longer opens the status picker.Attach: respond to the newest call you were alerted to.Clear: clear yourself from your call.Panic: one press sends a priority 1 call to the whole department, so it is unbound until an officer binds it.Bodycam: start and stop your bodycam.
Config.MDT.Dispatch.Detecttable{ Gunshots = true, Carjack = true, CarAlarm = true, WeaponSeen = true, Down = true, Explosions = true, Fights = false }Which automatic alerts raise a call. Silenced weapons, stun guns, flare guns and the like never raise a gunshot alert.
Config.MDT.Dispatch.WitnessesbooleantrueBystanders phone most crimes in after a short delay, and a witness who is threatened drops the call. false makes alerts instant.
Config.MDT.Dispatch.QuietZonesarray{}Places where gunfire raises no alert, such as a shooting range: { coords = vector3(x, y, z), radius = 50.0 }.
Config.MDT.Dispatch.WeaponWhitelistarray{}Extra weapons that never raise a gunshot alert, by name or hash, for example 'WEAPON_MUSKET'.
Config.MDT.Dispatch.HuntingZonesarray{ 'CMSW', 'MTCHIL', 'PALFOR', 'CANNY', 'MTJOSE', 'SANCHIA', 'MTGORDO' }Hunting grounds, by zone name or as { coords, radius }. Shots there come in as low-priority hunting calls.
Config.MDT.Dispatch.Phonebooleantrue911 calls from nx_phone go on the board. The caller's position follows them for 10 minutes, and a payphone call stays anonymous.
Config.MDT.Dispatch.Compatstring'auto'Alerts sent to other dispatch scripts (ps-dispatch, cd_dispatch, qs-dispatch, core_dispatch, rcore_dispatch, linden_outlawalert, esx_outlawalert and QBCore's police alert). 'auto' picks them up only while that script is not running, 'mirror' always, 'off' never. See Installation for the stand-in resources.
Config.MDT.Dispatch.AutoOnScenebooleantrueAn officer's status turns On scene when they reach the call. Each department can change it in Department, Settings.
Dash (the MDT in the car)#
On duty in an emergency vehicle (GTA class 18), the driver and front passenger get a status pill at the top right of the screen with new calls, the call they are on and plate reader hits, and a sheet with the mouse for status, lookup, calls, units and panic. EMS and fire get it without lookup and the plate reader. Needs dispatch on. With nx_hud the Dash is drawn in nx_hud's glass; without it, nx_computer draws its own.
Config.MDT.Dash.EnabledbooleantrueMaster toggle for the Dash.
Config.MDT.Dash.Vehiclestable{ Allow = {}, Deny = {} }Model names that count, or do not count, on top of emergency-class vehicles.
Config.MDT.Dash.OnFootbooleantrueDispatch alerts show whenever an officer is on duty, on foot and in any seat. false shows them only in an emergency vehicle. Plate reads still run only from the front seats of a counted vehicle.
Config.MDT.Dash.PlateReaderstring | false'auto'Where plate alerts come from. 'auto' uses your radar's plate reader while the radar resource runs (alerts only while that reader is switched on), otherwise the Dash reads plates itself. 'dash' always uses the Dash, 'radar' only the radar, false turns plate alerts off.
Config.MDT.Dash.Radarstring'wk_wars2x'The radar resource used by PlateReader 'auto' and 'radar'.
Config.MDT.Dash.Keystable{ Dismiss = 'BACK', Sheet = 'F10' }Default keys for new players. false leaves one unbound. Responding to a call and setting status use the dispatch keys.
Config.MDT.Dash.CabintableA screen on the car's dashboard showing the same Dash, seen by players nearby. Off by default.
Enabled(defaultfalse): the dashboard screen.SyncRadius(default8.0): meters within which other players see a car's screen.Models: the screen's place per model, asOffset(meters right, forward and up from the car's centre),YawandPitch(degrees) andWidth(meters). Ten vanilla emergency models ship placed. A model not listed has no screen.
To place screens for other cars, add
add_filesystem_permission nx_debug write nx_computer to server.cfg, sit in
the car on duty, open /nxdebug and pick NX Computer: car screen. Changes save
into config.lua.
Street#
Field cards, gang files, the tip line, witness appeals and bodycams that start themselves. Department, Settings in the MDT overrides the tip, appeal and bodycam values per department.
Config.MDT.Street.Phonestring'auto'The phone that carries the tip and appeal lines. 'auto' uses the first one running. nx_phone works out of the box; another phone needs a small adapter in server/mdt/hotline/.
Config.MDT.Street.TipstableThe anonymous tip line.
Enabled(defaulttrue): the tip line.NumberandLabel(default'8477'and'Crime Stoppers'): the number the public texts and the name they see. Keep the number unlike a player's.RewardMax(default2500): largest reward per tip.0turns rewards off.RewardDaily(default10000): most a department pays in rewards in any 24 hours.0turns rewards off.Payout(default'auto'): how rewards are paid, from the department's account into the tipster's bank.'record'only writes the reward down to pay by hand. Adapters live inserver/mdt/payout/.Agency(optional): the agency key that receives tips. By default the first police agency with tips on.
Config.MDT.Street.Appealstable{ Enabled = true, Number = '27732', Label = 'Police appeals' }Witness appeals: people who were in an area at a time get a text from this number and can answer anonymously.
Config.MDT.Street.Bodycam.Autotable{ Panic = true, OnScene = false, Siren = false }When the bodycam starts by itself: on panic and when the officer goes down, on arrival at a call, or with the siren. It never starts on a drawn weapon.
Config.MDT.Street.FiColourstablenilOptional clothing colours a field card may record, per ped model. Without it a card records only the sex and the vehicle. The comment in config.lua shows the shape.
Tickets#
Tickets reach the citizen's phone (with nx_phone) and become a bill in your billing script. The ticket codes are the fine-only rows of the department's charge list.
Config.MDT.Tickets.EnabledbooleantrueMaster toggle for tickets.
Config.MDT.Tickets.Backendstring'auto''auto' uses the first script in Backends that is running. 'record' sends no bill: the ticket is paid at the station and an officer marks it paid. A script's id uses that one, and falls back to 'record' when it is not running.
Config.MDT.Tickets.Backendsarray{ 'nx_realbanking', 'okokBilling', 'esx_billing', 'qb-phone', 'jim-payments', 'codem-billing', 'Renewed-Banking' }The order 'auto' tries. To bill through another script, copy server/mdt/billing/_template.lua, fill in its one call, and name it here or in Backend.
Config.MDT.Tickets.DueDaysnumber7Days to pay a ticket. Each department can change it.
Config.MDT.Tickets.GraceDaysnumber3Days after the due date before an unpaid ticket raises a warrant request.
Config.MDT.Tickets.WarrantOnUnpaidbooleantrueA ticket still unpaid after the grace days raises one warrant request.
Config.MDT.Tickets.MaxAmountnumber100000Largest ticket total.
Reports#
Config.MDT.Reports.EnabledbooleantrueIncident reports written outside a case.
Config.MDT.Reports.CountersignbooleanfalseA second officer approves reports and signs sentences. Off means a filed report is final and an officer can sign their own sentence. Each department can change it.
The MDT on the phone#
nx_phone's MDT app is the MDT for an officer away from the laptop: search (people, vehicles, weapons, properties, wanted, reports), the full report with charges, citizen reports (Ilmoitukset: take one on, make a report from it, answer it, decide a dispute), wanted notices and bulletins. EMS and fire get the patient lookup and their own reports, with the people named on them. Calls stay on the in-game alert card. Every action goes through the same permission checks and audit log as the laptop.
Config.MDT.PockettablenilFits the phone app to a custom MDT: its title, the tabs and their order, your own words, hidden sections and extra facts. nil reads pocket.json from the Config.MDT.UiResource resource instead; with neither, the phone app is the built-in one.
A custom MDT UI resource can carry the same settings as pocket.json next to its fxmanifest.lua. The server checks every entry and prints one console line for anything it drops.
Pocket = { title = { en = 'My MDT' }, tabs = { 'search', 'reports', 'filings', 'wanted' }, -- at most 5; a tab the officer cannot use never shows hide = { 'person.licences' }, -- person.* / vehicle.* / search.recent / search.bulletins strings = { fi = { ['phone.mdt.s.tab.search'] = 'Etsi' } }, facts = { person = { { from = 'framework.ssn', label = { fi = 'Henkilötunnus' }, copy = true } } },},facts show a field your server already sends the laptop MDT for that record (person, personRow, vehicle, patient). A page of your own reaches the phone through the RegisterPocketSection server export:
exports.nx_computer:RegisterPocketSection('permits', { label = { en = 'Permits' }, icon = 'book', cap = 'citizen.read', list = function(officer, payload) return { { id = 'pm-1', title = 'Firearm permit', sub = 'Mia Laine' } } end, get = function(officer, id) return { id = id, title = 'Firearm permit', facts = { { label = 'Holder', value = 'Mia Laine' } } } end,})The officer needs cap (nil = any member of the department), every read is logged, and the page goes away when your resource stops. Put its id in tabs to make it a tab; otherwise it is listed under More in the phone's search.
Advanced#
Vehicle ownership tables#
Where the Vehicle Marketplace reads and writes owned vehicles, per framework. Defaults match stock schemas.
Config.VehicleTablestablePer-framework map of column roles to database column names. Change only if your server uses a non-standard schema.
Config.VehicleTables = { esx = { table = 'owned_vehicles', ownerColumn = 'owner', plateColumn = 'plate', vehicleColumn = 'vehicle', typeColumn = 'type', storedColumn = 'stored', storedValue = 1 }, qbcore = { table = 'player_vehicles', ownerColumn = 'citizenid', plateColumn = 'plate', modelColumn = 'vehicle', modsColumn = 'mods', stateColumn = 'state', stateValue = 1, garageColumn = 'garage', defaultGarage = 'pillbox' }, -- qbox and qbx match qbcore}...
Map tiles#
Config.MapTileCDNstringnilBase URL for hosted map tiles. Atlas tiles ship bundled. To offer Satellite or Grid styles, host them on your own CDN or bucket and set the base URL. nil serves Atlas only.
Security and audit#
Config.AuditLargeMoveFiatnumber50000Money movements at or above this fiat value are logged in the security audit log. Visibility only. It does not block or cap transfers.
Config.AllowCommandAceAdminbooleanfalseThe admin console requires the nx_computer.admin ace or a framework admin check. true also accepts holders of the broad command ace, which is not recommended.
Debug#
Config.DebugbooleanfalseMaster switch for the developer tuning tools. Developer-only. Keep it false in production. true unlocks the tuning commands (/nxc_place, /nxc_anim, /nxc_cam, /nxc_cable, /nxcc, /nxc_freelook, /nxcnc) plus verbose site-builder logging.
Config.PlacerAdminAccessbooleantrueLets admins use the placement tools (/nxc_place and /nxc_cable) while Config.Debug is off. Admin means the nx_computer.admin ace or your framework's own admin check. false limits the tools to Config.Debug.
Config.PlacerAdminGroupsarray{ 'admin', 'superadmin' }ESX groups that count as admin for Config.PlacerAdminAccess.
Config.Camera.Debug is a second developer-only flag, also false by default, for
the camera prop tuner. Keep both off on a live server.
The helper functions at the bottom of config.lua are internal to the resource and
are not meant to be edited.
Data files#
Three groups of owner-editable data ship outside config.lua. All of them are in
escrow_ignore, so you can read and edit them, and your edits survive updates.
shared/assets.lua declares the asset universe the Exchange trades: the coins and
companies, their sectors, and their per-asset tuning. Add, remove, or retune assets
there. The file opens with a field reference and the rules that keep the engine
stable, including the reminder that a symbol is a primary key and renaming one
orphans every player's position.
shared/display.lua holds the placement values for the in-world panels: where the
laptop and monitor screens sit on their props, their size and resolution, the focus
camera for each, and which monitor models the connect option appears on. The values
are meant to be tuned in-game rather than typed by hand, and the tuning commands
write a ready block back for pasting.
data/mdt/dispatch.lua holds the dispatch defaults: per call type, which
services it alerts and its default priority; the timings for merging reports,
On scene, the board and a 911 caller's position; the premise history and NPC
witnesses; what automatic detection reports; and the explosion types that are
ignored. Every value is checked at start, and a wrong one is ignored with one
console line. Priority 1 stays reserved for the panic button and officer down.
data/mdt/pack_generic.lua, pack_us.lua, and pack_fi.lua carry the MDT
vocabulary for each template pack, and charges_us.lua and charges_fi.lua carry
the charge catalogues with their fines and sentence lengths. An agency uses its
pack's charge list unless its charges field in Config.MDT.Agencies picks
another. Each file opens with
its own shape contract. The disk file is a seed: edits bosses make in-game are
layered on top of it and win, and the game never rewrites the file. A charge is
copied onto a case when it is filed, so retuning a catalogue never rewrites a case
that is already filed.
A report template in a pack names the departments that use it with services.
A template without it is police paperwork. Every pack ships five EMS templates
(patient care, treatment, patient transport, death report and service
incident), and police, EMS and fire each see only their own:
{ id = 'service_incident', kind = 'authored', services = { 'ems', 'fire' }, label = 'Incident report', sections = { ... },},services takes 'police', 'ems' and 'fire'. A misspelt service stops the
MDT at start with a console line naming the template.
Server secrets (config_server.lua)#
config_server.lua loads only on the server and never ships to clients. It extends the
same Config table. Put all secrets and API tokens here.
Config.Media.FiveManageTokenstring''FiveManage Images API token, the one secret the media and Photos feature needs. Create an Images token in the FiveManage dashboard under API keys and paste it here. Leaving it empty keeps uploads disabled with a clean not-set-up state.
Never put this token in config.lua, which downloads to every client. It belongs only in config_server.lua.
Config.Media.FiveManageVideoTokenstring''Separate FiveManage video token for MDT bodycam clips, only if your plan issues one. Left empty, clips upload with the image token above.
Config.JobsHubWebhookstable{}Per-job Discord webhook URLs, keyed by the job ids from Config.JobsHub.Jobs. Fires when Config.JobsHub.ApplicationWebhooks is true. This replaces the deprecated per-job webhook fields in config.lua.
Config.MDTWebhookstable{}Per-agency Discord webhook URLs, keyed by the agency keys from Config.MDT.Agencies. Fires when Config.MDT.ShiftAlert.Enabled is true. An agency with no key here sends no alert.
