Security
A house's security has six parts: cameras, the intercom, an alarm, break-ins, safes and the police battering ram. Household alerts go to the server's phone and police calls go through the server's dispatch.
Phones and Dispatch
Security.Phone and Security.Dispatch are 'auto' by default: the first supported resource that is started is used. The server log says which at start. Name one to force it, or set false for none. With no phone, the household gets a plain notification.
| Supported | |
|---|---|
| Phones | lb-phone, qb-phone, sd-phone, npwd, qs-smartphone-pro, qs-smartphone, gcphone, gksphone, yseries, roadphone, codem-phone |
| Dispatch | ps-dispatch, cd_dispatch, lb-tablet, origen_police, tk_dispatch, rcore_dispatch, fd_dispatch, mt_dispatch, qs-dispatch, redutzu-mdt, sd-phone (its MDT) |
To add your own, edit bridge/server/phone.lua or bridge/server/dispatch.lua. Both ship open.
Security.Police lists the jobs counted as police on duty, with the lowest grade that counts. Security.DispatchJobs lists the jobs a dispatch call goes to.
Cameras
The owner buys cameras from the home panel for Panel.Cameras.Price each, up to Max per house, and puts each one up by hand within Reach metres of the house's doors. There are two kinds: a video doorbell flush on a wall, and a security camera on an arm.
While placing, a ghost of the camera follows the aim along the walls and what it will see is drawn into the world.
| Key | Does |
|---|---|
| Mouse wheel | Turns a security camera on its arm. |
| Shift + wheel | Tips it. |
| Q | Swaps the kind. |
| F | Looks through it before it goes up. |
Each camera is named after the door it watches. Moving one is free.
Pictures play live on the panel's screen or full screen. Drag to look round, use the wheel to zoom, and A / D for the next camera. The front door's lock and letting someone in are under the picture. A doorbell's ring lights when the bell rings. Who may watch besides the owner is set by Cameras.Watch.
| Option | Default | Description |
|---|---|---|
Cameras.Enabled | true | Turns cameras on. |
Cameras.Price | 2500 | Each, paid from Properties.Account. |
Cameras.Max | 4 | Cameras a house can have. |
Cameras.Reach | 25.0 | Metres from the house's doors a camera may go. |
Cameras.Watch | 'doors' | 'doors' (a key that opens the doors), 'any' (any key) or 'owner'. |
Cameras.Fov | 70.0 | Field of view at no zoom. |
Cameras.Pitch | -7.0 | Degrees a doorbell looks down. |
Cameras.Pan, Tilt, TiltDown | 55.0, 22.0, 35.0 | How far each turns and tips. |
Cameras.Zoom | 3.0 | Most each zooms in. |
Cameras.Range | 22.0 | Metres out to which the view is drawn while placing. |
Cameras.Filter | 'colour' | 'colour' or 'cctv'. |
Intercom
Someone without a key rings, and the household's phones are told. For Intercom.Window seconds the ring can be answered from the home panel:
- With a camera at the front door, its picture comes up with the call laid over it. A video doorbell is used first. With no camera, a card shows on the panel.
- The person at the panel and the visitor are put on a
pma-voicecall together until either hangs up, the visitor walks more thanReachmetres from the door, orTalkseconds run out. - Letting them in tells the visitor the door is open.
- If nobody answers, the visitor can leave a message on the panel from the porch (
Messages).
| Option | Default | Description |
|---|---|---|
Intercom.Enabled | true | Turns the intercom on. |
Intercom.Window | 90 | Seconds a ring can be answered in. |
Intercom.Reach | 6.0 | Metres from the door the visitor stays on the line within. |
Intercom.Talk | 300 | Seconds a call lasts at most. |
Intercom.Voice | 'auto' | 'auto', 'pma-voice', or false for picture and letting in without voice. |
Intercom.Channel | 870000 | Voice call channels start here, one per house. |
Intercom.Messages | true | A visitor nobody answered can leave a message. |
Alarm
The owner fits an alarm from the panel's Security view for Alarm.Price, chooses a PIN as it is bought, and puts its keypad up on a flat wall inside, near a door.
Arming. The household arms it from the panel, and anyone with the PIN arms or disarms it at the keypad. There are two modes:
| Mode | Behaviour |
|---|---|
| Away | Armed after an exit delay of ExitDelay seconds. Anyone without a key inside sets it off. |
| At home | Armed at once. People inside do not set it off. |
What sets it off:
- A lock picked or forced.
- A door broken down with the battering ram.
- The stash broken open.
WrongPinswrong PINs in a row at the keypad.- Someone drilling a safe.
- Armed away: anyone without a key inside.
When it goes off: the siren sounds for up to Siren seconds and a strobe flashes over the front door. The household's phones are told. An owner who is offline gets mail where their phone keeps it. Unless the alarm is disarmed within DispatchDelay seconds, the police are called. The owner chooses on the panel whether the alarm calls the police.
With KeyDisarms = true a household member unlocking a door disarms it. With auto-arm turned on by the owner, the alarm arms itself AutoArm seconds after the house is left empty with every door locked.
| Option | Default | Description |
|---|---|---|
Alarm.Enabled | true | Turns the alarm on. |
Alarm.Price | 6500 | Paid from Properties.Account. |
Alarm.ExitDelay | 30 | Seconds to leave after arming away. |
Alarm.Siren | 150 | Seconds the siren sounds. |
Alarm.DispatchDelay | 20 | Seconds before the police are called. |
Alarm.KeyDisarms | true | Unlocking a door as a household member disarms it. |
Alarm.PinLength | { 4, 6 } | Digits a PIN has, at least and at most. |
Alarm.WrongPins | 3 | Wrong PINs in a row that set it off. |
Alarm.AutoArm | 90 | Seconds after the house is left empty and locked that it arms itself. |
Alarm.Motion | 2.0 | Seconds between checks for someone without a key inside. |
Break-ins
Breaking in is only possible at a house that belongs to someone else. A house for sale and a player's own house cannot be broken into.
Picking a lock. At a locked door, with a pick on you, the lock prompt offers picking it. It is an ox_lib skill check. Each item in Burglary.Picks has its own rounds. A failed pick breaks with a chance of Break. A picked door is open, and the house's activity says someone picked it, never who.
Reinforced doors. The owner can reinforce every door of the house and its garages from the panel for Reinforced.Price. A reinforced door only takes the items in Reinforced.Picks (the advanced lockpick by default) and harder rounds.
The stash. Inside, one of the items in Stash.Items breaks the stash open in Stash.Time milliseconds. It then stays open to whoever broke it for Stash.Window seconds.
| Option | Default | Description |
|---|---|---|
Burglary.Enabled | true | Turns break-ins on. |
Burglary.MinPolice | 0 | Police on duty needed before a lock can be picked. |
Burglary.OwnerOnline | false | true: only while the owner or a keyholder is on the server. |
Burglary.Cooldown | 1800 | Seconds before a house can be broken into again. |
Burglary.Picks | lockpick, advancedlockpick | Item name and its skill check rounds (ox_lib difficulties). |
Burglary.Break | 0.35 | Chance a pick breaks when it fails. |
Burglary.Keys | { 'w', 'a', 's', 'd' } | The skill check's keys. |
Burglary.Reinforced.Price | 9500 | What reinforcing every door costs. |
Burglary.Reinforced.Picks | advancedlockpick | What picks a reinforced door. |
Burglary.Stash.Enabled | true | Breaking the stash open. |
Burglary.Stash.Items | { 'screwdriverset', 'drill' } | Tools that break it open. |
Burglary.Stash.Time / Window | 14000 / 300 | Milliseconds it takes, and seconds it stays open. |
Safes
Safes are bought in decorate mode, at the head of the Storage furniture, and put anywhere in the house. Each safe is an ox_inventory stash of its own, apart from the house's stash.
A safe opens with its combination only. The household's keys do not open it. The combination is dialled on the safe itself: the dial is turned to each number in turn, then the handle is pulled. Whoever may decorate the house sets the combination the first time the safe is used. WrongCodes wrong combinations in a row lock the safe for Lockout seconds. The owner can have a forgotten combination reset for Reset.Price.
| Safe | Tier | Price | Slots | Weight |
|---|---|---|---|---|
| Floor safe | home | 7500 | 15 | 60000 |
| Steel safe, black | steel | 18000 | 25 | 150000 |
| Steel safe, oxblood and brass | steel | 26000 | 25 | 150000 |
| Vault safe | vault | 65000 | 40 | 400000 |
Cracking a safe takes the tools of its tier, the police minimum of its tier and a drilling job in stages. Each stage ends with a skill check. A failed check repeats the stage and may snap the drill bit.
| Tier | Items needed | Consumed | Stages | Stage time | Police | Cooldown |
|---|---|---|---|---|---|---|
home | drill | none | 4 | 20 s | 0 | 3600 s |
steel | drill, electronickit | electronickit | 6 | 25 s | 2 | 5400 s |
vault | drill, thermite | thermite | 8 | 30 s | 3 | 7200 s |
With Sensor = true the safe's sensor feels the drill at once: the household is told straight away, an armed alarm goes off, and the police are called after SensorDelay seconds whether or not an alarm is fitted. A cracked safe stays open to whoever cracked it for Window seconds.
MaxPerProperty (2 by default) is how many safes one property may have. See the full safes file.
Battering Ram
Police on duty with the battering_ram item break down a locked door. They aim at the door and use the target option, use the lock prompt when no target resource runs, or use the item from the inventory at the door.
The camera goes out to the side and the ram is swung with the mouse: drawn back as the mouse comes back, driven at the door as it goes forward. A blow counts by how fast it lands and how far back it was drawn. A door takes Hits full blows, or ReinforcedHits when the house's doors are reinforced.
Everyone nearby hears the blows and sees the door shake. On the last blow it comes off its hinges and falls into the house. The door stays down, unlocked, until the household puts it back from the doorway (RepairTime, RepairCost) or RepairAfter minutes pass. An armed alarm goes off and the house's activity says who broke the door.
configs/shared/doors.lua, under Ram:
| Option | Default | Description |
|---|---|---|
Ram.Enabled | true | Turns the ram on. |
Ram.Item | 'battering_ram' | The item. |
Ram.Jobs | nil | Jobs that may use it on duty: job name and lowest grade. nil uses Security.Police. |
Ram.Hits | 3 | Full blows a door takes. |
Ram.ReinforcedHits | 6 | Full blows a reinforced door takes. |
Ram.RepairTime | 12000 | Milliseconds the household spends putting it back. |
Ram.RepairCost | 0 | What that costs them (bank). |
Ram.RepairAfter | 60 | Minutes after which a broken door is back anyway. 0: only when repaired. |
Ram.Range / Ram.Volume | 35.0 / 0.9 | How far the blows are heard, and how loud. |
Ram.Camera | true | The side camera while swinging. |
Ram.Sensitivity | 1.0 | How far the mouse swings it. |
See Installation for the item definition.
Configuration
Phones, dispatch, police jobs, the intercom, the alarm and break-ins are in configs/shared/security.lua (full file). Cameras are in configs/shared/panel.lua (full file). Safes are in configs/shared/safes.lua (full file). The battering ram is in configs/shared/doors.lua (full file).
