Every setting in the Laptop's config.lua, and the open files for fitting it into your server.
On this page
The settings are in config.lua. The text players see is in locales/ (copy en.json to add a language); the language is set in tr_core's configuration.
These files aren't escrowed: config.lua, locales/*.json, install/, server/open.lua and client/open.lua.
Settings
Setting
Default
What it does
devMode
false
Admins install apps for free and at once. Keep it off on a live server
item
'tr_laptop'
The item's name
laptop.reach
2.5
Metres a player may move from the laptop before it closes
laptop.display
'dui'
Where the screen shows: 'dui' on the laptop itself, looked at close up, or 'nui' over the game
laptop.screen
80
How much of the player's screen it covers, in percent (50 to 100; up to 95 with 'dui')
laptop.blur
true
Blur the game behind the screen while it's open ('nui' only)
laptop.os
'ifruitos'
The system a new laptop comes with: 'ifruitos' (the Mac's look) or 'leafos' (Windows 11's)
store.account
'bank'
What apps are paid from when an app doesn't say: 'cash', 'bank' or 'dirty'
files.size
32768
Bytes one text file may hold (32 KB)
files.space
262144
Bytes all of a laptop's files may hold together, the Recycle Bin's too (256 KB)
files.count
300
Files and folders on one laptop
share.range
10.0
Metres two laptops may stand apart for nearby sharing
share.wait
60
Seconds the other player has to accept
sites
{}
Websites in the browser, without a resource of their own (1.2.0). See Adding websites
display, screen and blur are only where each player starts: they can change them for themselves in the laptop's Settings, and that's kept in their own game. os is only for new laptops; players switch in Settings.
Your server's rules
server/open.lua and client/open.lua are there for you to change, to fit the laptop into your server. A reason you return is a key under error in locales/en.json (like 'cant_now') or your own text.
Function
Change it to
Open.canUse(src)
server
Stop some players opening a laptop from their inventory: a job, a zone. Return false and a reason
Open.canPlace(src, coords)
server
Stop a laptop being put down somewhere
Open.pay(src, account, amount, reason)
server
Take the money for apps your own way. Return true once it's paid
Open.notify(src, text)
server
Show what the laptop refused through your own notifications
Open.notify(text)
client
The same, on the client
Open.placed(src, serial, coords)
server
Log or react when a laptop is put down
Open.pickedUp(src, serial)
server
Log or react when a laptop is picked up
Open.installed(src, serial, app, price)
server
Log or react when an app is bought (price 0 for free ones)
server/open.lua
function Open.canUse(src) if TR.player.hasJob(src, 'police') then return false, 'cant_now' end return trueend