Skip to content

Configuration ​

Every file is in shared/config/. They are shared with clients, so nothing secret belongs in them. Towers, dead zones and the world rules are also edited live in the tower editor and stored in the database; stored values win over these files.

With np_admin running, the most used values are editable in game on its Resource settings page under CellNet (see Editable in np_admin). np_admin stores only the overrides; the files stay the defaults.

File Tables
00_core.lua General, Config.Signal, Config.Rules, Config.Capacity, Config.Comms, Config.Records, Config.Triangulate, Config.Cooldowns
carriers.lua Config.Carriers, Config.Sim, Config.Plans, Config.Usage, Config.Stores
towers.lua Config.TowerDefaults, Config.Towers
zones.lua Config.Zones
wifi.lua Config.Wifi
world.lua Config.Jammers, Config.Detector, Config.Outages, Config.Sabotage
job.lua Config.Job
items.lua Config.Items

General ​

Option Default Description
Config.Locale 'en' 'en' or 'de'
Config.Debug false Debug log lines
Config.Framework 'auto' 'esx', 'qbx', 'qb', 'standalone', or the first started
Config.Inventory 'auto' 'np', 'ox', 'qb', 'none', or the first started
Config.Integrations {} Switch a running sibling off for np_cellnet: { np_hud = false }
Config.Admins {} Staff identifiers without np_admin ('license:...')
Config.AdminGroups ESX admin, superadmin; qb admin, god Framework groups that count as staff without np_admin
Config.Command 'cellnet' The staff command

Signal ​

How the numbers fit together is on Signal.

Option Default Description
tick 2 Seconds between two passes over every player with a phone
reportInterval 3 Seconds between two client environment reports (sent only on a change)
phoneCheck 10 Seconds between two phone item / SIM checks per player
gridSize 1000 Metres per cell of the tower lookup grid
falloff 1.6 Exponent of the distance falloff
heightBonus 0.002 reach = range * (1 + height * heightBonus), height capped at 200 m
minScore 6 A tower below this score is not usable
bars { 75, 50, 28, 12 } Score thresholds for 4 / 3 / 2 / 1 bars
degrade 5G 55, LTE 32, 3G 16 Below this score the type steps down one (5G → LTE → 3G → E)
interiorPenalty 18 Inside an interior
undergroundPenalty 55 Tunnels, subway, basements
loadStart / loadPenalty 70 / 15 Congestion: nothing below loadStart %, up to loadPenalty at 100 %
dbm { -121, -51 } dBm shown at score 0 / 100
weather THUNDER 14, BLIZZARD 12, RAIN 6, SNOW 6, XMAS 4, CLEARING 2, FOGGY 2 Score penalty per weather type

World rules ​

Config.Rules: switches staff also flip in the tower editor (stored in cellnet_rules) and in np_admin.

Option Default Description
interiors true Interiors and underground weaken the signal
weather true Weather weakens the signal; storms can drop rural towers
emergencyAnyCarrier true 911 / 912 work on any carrier's tower. Off: only with your own coverage
jammers true Jammers can be placed and jam. Switching it off removes the placed ones
sabotage true Tower cabinets can be sabotaged
roaming true Partner and Cayo Perico towers serve roaming SIMs

Capacity ​

Option Default Description
Config.Capacity.emergencyReserve 4 Extra call slots only emergency calls may use
Config.Capacity.preempt true At slots + emergencyReserve an emergency call ends the newest normal call on that tower

Comms ​

Option Default Description
Config.Comms.emergency.lines { '911', '912' } Fallback list of emergency numbers. np_cellnet reads np_phone's own list (getConfig().emergencyLines) first; keep both equal
Config.Comms.fieldTest '*3001#12345#*' Dial code that opens the Field Test

Records ​

Option Default Description
days 14 Retention of cellnet_records
grid 50 Positions are rounded to this many metres
flush 10 Seconds between two batched inserts
maxRows 500 Rows per query
maxWindow 7 days Longest time window per query
jobs { police = 0, sheriff = 0 } Job → minimum grade allowed to request records and triangulate
onduty true The job must be on duty
warrantKind 'location' The kind np_surveillance's isCovered is asked for (a phone warrant with location scope)
linkWindow 30 days How far back a handset is followed to other numbers

Triangulation ​

Option Default Description
Config.Triangulate.maxTowers 3 Towers used for a fix
Config.Triangulate.noise 0.12 Each ring's radius is off by up to this fraction
Config.Triangulate.baseError { 450, 180, 70 } Minimum error radius in metres with 1 / 2 / 3 towers

Config.Cooldowns holds the per-player cooldowns (ms) of the app RPCs: coverage, bestSignal, setPlan, payPlan, fieldTest, ops.*, records.query, records.triangulate (10 s) and wifi.join.

Carriers ​

Config.Carriers.<id> = { label, tint, order, roaming = { partners, cayo }, defaultPlan, plans }. A plan is { id, name, priceWeekly, dataGb }. See Carriers & plans.

Carrier Tint Roams on Plans
badger green Cayo Perico Badger Go $45 / 4 GB, Badger Plus $80 / 10 GB, Badger Unlimited $140 / 50 GB
whiz blue Tinkle, Cayo Perico Whiz Lite $35 / 3 GB, Whiz Max $95 / 20 GB
tinkle pink Whiz, Cayo Perico Tinkle Prepaid $25 / 2 GB, Tinkle Social $60 / 8 GB

SIM cards ​

Option Default Description
Config.Sim.requireItem true The phone needs a sim_card item (with an inventory that has metadata). false: a carrier per character
Config.Sim.item 'sim_card'
Config.Sim.defaultCarrier 'badger' Carrier of new characters without SIM items, and of blank SIM items
Config.Sim.numberFromSim true A SIM with metadata.number is logged under that number in the cell records

Plans ​

Option Default Description
period 7 days One billing period
trialDays 7 New subscribers start paid for this many days
check 300 Seconds between two billing passes
autopay true Charge at the end of a period
account 'bank' Account charged first
graceHours 0 Hours after the paid period before the line drops to SOS
switchAnywhere false Switch carrier or plan without a carrier store
storeDistance 12 Metres to a store
simPrice 50 A new SIM when switching carrier, on top of the first week

Data usage ​

Config.Usage estimates the mobile data of each np_phone action in MB: methods (exact, wins, e.g. ['photos.upload'] = 4) and prefixes (['chirp.'] = 0.3, ['videos.'] = 8, ...). It is counted only on cellular, never on Wi-Fi. throttleType = '3G' caps the network type above the allowance. flush = 60 seconds between two writes of the counters.

Stores ​

Config.Stores = { { id, label, coords, carriers = { ... } } }: where players switch carrier or plan and get a new SIM. Defaults: Digital Den in Little Seoul and Mirror Park (all carriers), Badger Pillbox Hill, Whiz Del Perro Plaza, Tinkle Vinewood Blvd, 24/7 Sandy Shores (Badger, Tinkle) and 24/7 Paleto Bay (Badger, Whiz).

Towers ​

Config.TowerDefaults fills missing fields: type = 'LTE', range = 1000, height = 30, slots = 24, dataSlots = 120, backupPower = 300, cabinet = { x = 3.0, y = 2.0, z = 0.0 }.

Field Description
id 'LS-07': letters, digits, _ and -, 2–24 characters
label Display name
carrier 'badger', 'whiz', 'tinkle' or 'shared' (serves every carrier)
coords Ground position of the mast
type '5G', 'LTE', '3G' or 'E'
range, height Metres
slots, dataSlots Concurrent calls; attached phones before congestion
backupPower Seconds of battery after the power is cut
cabinet Offset from coords to the ground cabinet (sabotage and repair point)
rural Storms can drop it
cayo Roaming area for every carrier
sabotageCooldown Seconds; overrides Config.Sabotage.cooldown

Config.Towers lists 36 default towers: 21 in Los Santos (Maze Bank Tower, Legion Square, Pillbox Hill, Mission Row, Little Seoul, Vespucci Beach, Vinewood Hills, Del Perro Pier, Rockford Hills, Richman, Pacific Bluffs, Davis, Strawberry, Vinewood, La Mesa, LSIA, the port, El Burro Heights, Galileo Observatory, the Vinewood sign, Mirror Park), 13 rural ones in Blaine County and Paleto, and 2 on Cayo Perico. The coordinates are approximate: move a mast or its cabinet in the editor if needed.

Zones ​

Config.Zones = { { id, label, kind = 'dead' | 'weak', penalty?, minZ?, maxZ?, points = { { x, y }, ... } } }. A dead zone forces every tower to 0; a weak zone subtracts penalty. minZ / maxZ limit a zone in height, so a tunnel under a street with signal works. Defaults: the LS subway (dead below z 18), the Del Perro tunnel (dead), the storm drains (weak, 45), Mount Chiliad's north face (weak, 60), Raton Canyon (dead), the Tataviam canyon (weak, 35) and the open sea around the map (dead). Staff draw more in the editor; an editor zone with the same id replaces a default.

Wi-Fi ​

Config.Wifi = { { ssid, coords, radius, job?, password? } }. job is a job name or a list; password hotspots are joined once from the CellNet app and remembered per character. Defaults: Bean Machine (two), Vanilla Unicorn (password), Tequi-la-la, Bahama Mamas, Burger Shot, Yellow Jack, LSIA, LSPD-Secure and BCSO-Paleto (police, sheriff), Pillbox staff (ambulance), Del Perro Heights and Eclipse Towers (password). See World → Wi-Fi.

Jammers and the detector ​

Option Default Description
Config.Jammers.item 'cell_jammer'
Config.Jammers.radius min 25, max 60, default 40 Metres; the item's metadata.radius wins, clamped
Config.Jammers.battery 30 Minutes; metadata.battery keeps what is left after a pickup
Config.Jammers.model 'ch_prop_ch_mobile_jammer_01x'
Config.Jammers.pickupDistance 2.0
Config.Jammers.max / perPlayer 25 / 2 On the whole server / per character
Config.Detector.item 'jammer_detector'
Config.Detector.range 150 Metres
Config.Detector.interval 1000 Ms between two readings
Config.Detector.jobs { police = 0, sheriff = 0 } Job → minimum grade. {}: anyone with the item

Outages ​

Option Default Description
stormCheck 60 Seconds between two storm rolls
stormChance 0.04 Per rural tower and roll
stormMinutes { 5, 15 } Length of a storm outage
stormWeathers { 'THUNDER', 'BLIZZARD' } Weather types that count as a storm
notifyRadius true Players served by a tower that goes down get a toast

Sabotage ​

Option Default Description
duration 600 Seconds a sabotaged tower stays down (a technician can repair it earlier)
cooldown 2700 Seconds before the same tower can be sabotaged again
time 12 Seconds of hold and progress
interactDistance / maxHeight 2.5 / 8
cutItem / breakerItem 'bolt_cutter' / false Tools; false = none needed
consumeCutter false
alarm.jobs { police = 0, sheriff = 0 } Who gets the silent alarm (on duty)
alarm.telecom true The telecom job gets it too
alarm.caseId nil np_surveillance case that receives an intel entry per alarm

Telecom job ​

Option Default Description
name 'telecom'
onduty true
bossGrade 3 This grade and above may buy tower upgrades
busyLoad 85 % load from which a tower is listed as busy
pay fibre 850, power 600, storm 450, admin 300, default 400 Pay per repair, by outage reason
repair.time 15 Seconds of progress
repair.items fibre: 1 fibre_kit; power: 2 fuse; storm: 1 fuse Parts used per outage reason
repair.minigame { game = 'wires', difficulty = 'medium' } np_minigames; false: none
cow 1800 s, max 2, 1 per player, shared LTE, 600 m, 30 slots, prop_radiomast02 Mobile masts
upgrades E → 3G $15,000; 3G → LTE $30,000; LTE → 5G $65,000; 5G +slots $40,000 { to?, slots, dataSlots, cost } per type

Items ​

Config.Items.<name> in np_inventory's format (label, description, weight, stack, close, icon, tint, category). Usable items get server = { export = 'np_cellnet.useItem' } added automatically. See Installation → Items.

Editable in np_admin ​

Under Resource settings → CellNet. Every field applies live.

Category Fields
Signal Signal tick, bar thresholds, interior penalty, underground penalty, congestion penalty at full load
World rules Interiors, weather, 911 on any carrier, jammers, sabotage, roaming
Capacity Emergency reserve slots, emergency calls pre-empt
Investigations Records retention, jobs that may request records
Plans SIM item required, default carrier, autopay, free days, switch without a store, SIM price, the plans of each carrier
Telecom job Job name, pay per repair, COW duration, COWs on the server, grade for upgrades
World Jammer radius and max radius, jammer battery, sabotage outage, sabotage cooldown, storm drop chance

The page also lists while np_cellnet is stopped: the manifest declares the settings schema and every config file.