NX CreativeNX CreativeDocs
ScriptsLaptop

Configuration

Every entry in config.lua. Defaults, types, and purpose.

All settings live in config.lua. The file is in escrow_ignore, so it stays editable after install. Server-only Discord webhooks live in server/webhooks.lua, which is covered in Installation.

General

Config.Frameworkstringdefault: 'esx'

Framework integration. One of 'esx', 'qbcore', 'qbox'. 'qbx' is accepted as an alias for 'qbox'.

Config.Inventorystringdefault: 'ox_inventory'

Inventory provider. One of 'ox_inventory', 'qb-inventory'.

Config.Targetstringdefault: 'ox_target'

Target provider used for the laptop's open and pickup interactions. One of 'ox_target', 'qb-target'.

Config.Accountstringdefault: 'bank'

Which account balances settle trading, casino, marketplace, and darknet transactions against. Typically 'bank', 'money', or 'cash'.

Config.TableNamestringdefault: 'nx_laptop_assets'

Database table that stores per-player stock and crypto holdings. Change only if you renamed the imported SQL table.

Config.LaptopItemstringdefault: 'laptop'

Inventory item name that represents the laptop. Must match the item registered in your inventory system.

Placement

Config.PlaceDistancenumberdefault: 5.0

Max distance in meters between the player and the placement preview when placing the laptop.

Config.PreviewAlphanumberdefault: 100

Alpha value (0 to 255) for the translucent placement preview prop.

Target

Config.TargetDistancenumberdefault: 1.5

Interaction distance in meters for the laptop target zone.

Config.TargetOpenLabelstringdefault: 'Open Laptop'

Label shown on the target prompt for opening the laptop.

Config.TargetOpenIconstringdefault: 'fa-solid fa-laptop'

Font Awesome icon for the open-laptop target prompt.

Config.TargetPickupLabelstringdefault: 'Pick Up Laptop'

Label shown on the target prompt for picking the laptop back up.

Config.TargetPickupIconstringdefault: 'fa-solid fa-box'

Font Awesome icon for the pickup target prompt.

Config.EnablePickupbooleandefault: true

Whether the pickup target prompt is registered. If false, placed laptops cannot be picked back up.

Jobs hub

Config.JobsHub.Enabledbooleandefault: true

Master toggle for the jobs app. If false, the app is hidden in the UI.

Config.JobsHub.Jobstable

Array of job definitions. Each entry: { id, label, description, requirements, questions }. The id must match a key in ServerConfig.JobWebhooks. Shipped with police, ems, and mechanic. Each questions entry: { id, label, placeholder, required }.

Vehicle marketplace

Config.VehicleMarket.Enabledbooleandefault: true

Master toggle for the marketplace app.

Config.VehicleMarket.ListingFeenumberdefault: 0

Flat fee charged to the seller to create a listing.

Config.VehicleMarket.TaxPercentnumberdefault: 0

Percentage deducted from the sale price on a successful purchase.

Config.VehicleMarket.MinPricenumberdefault: 1000

Minimum allowed listing price.

Config.VehicleMarket.MaxPricenumberdefault: 2500000

Maximum allowed listing price.

Config.VehicleTablestable

Per-framework mapping of the owned-vehicle table used to source listable vehicles. Shipped entries: esx, qbcore, qbox, qbx. Each entry defines the table name and the column names the resource will read and update. Only change if your server uses a non-standard schema.

Darknet

Config.Darknet.Enabledbooleandefault: true

Master toggle for the darknet app.

Config.Darknet.AccessItemstringdefault: 'usb'

Inventory item required in the player's inventory to access the darknet app.

Config.Darknet.DeliveryCheckIntervalnumberdefault: 30

Seconds between server-side checks for matured catalog deliveries.

Config.Darknet.ListingFeenumberdefault: 0

Flat fee charged to create a player-run listing.

Config.Darknet.MinPricenumberdefault: 250

Minimum price for a player-run listing.

Config.Darknet.MaxPricenumberdefault: 500000

Maximum price for a player-run listing.

Config.Darknet.Pickuptable

Pickup ped configuration. Fields: coords (vector4), model (ped), scenario, label, icon, distance, hintRadius, hintDuration, hintClearDistance. The hint fields control the in-world marker that points the player toward the pickup after a delivery is ready.

Config.Darknet.Catalogtable

Fixed contraband catalog. Each entry: { id, label, item, amount, price, delivery }. The delivery field is the delivery delay in seconds. Shipped with advanced_lockpick, thermite, and radio entries.

Casino

Config.Casino.BlackjackBetsnumber[]default: { 10, 25, 50, 100 }

Selectable bet amounts in the blackjack app.

Config.Casino.HiLoBetsnumber[]default: { 10, 25, 50, 100 }

Selectable bet amounts in hi-lo.

Config.Casino.VideoPokerBetsnumber[]default: { 25, 50, 100, 250 }

Selectable bet amounts in video poker.

Config.Casino.RouletteBetsnumber[]default: { 10, 25, 50, 100 }

Selectable chip values on the roulette table.

Payouts

Config.Casino.Payouts.BlackjackWinnumberdefault: 2.0

Payout multiplier for a standard blackjack win (pays stake times this value).

Config.Casino.Payouts.Blackjacknumberdefault: 2.5

Payout multiplier for a natural blackjack.

Config.Casino.Payouts.BlackjackPushnumberdefault: 1.0

Payout multiplier when the hand pushes (stake returned).

Config.Casino.Payouts.HiLoWinnumberdefault: 1.9

Payout multiplier for a correct hi-lo call.

Config.Casino.Payouts.HiLoTienumberdefault: 1.0

Payout multiplier for a hi-lo tie (stake returned).

Video poker paytable

Config.Casino.VideoPokerPaytabletable

Hand ranking to payout multiplier. Shipped entries: 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).

Roulette payouts

Config.Casino.RoulettePayoutstable

Bet type to payout multiplier. Shipped entries: straight (35), split (17), street (11), corner (8), sixline (5), dozen (2), column (2), red, black, even, odd, low, high (all 1).