Skip to content

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
Phoneslb-phone, qb-phone, sd-phone, npwd, qs-smartphone-pro, qs-smartphone, gcphone, gksphone, yseries, roadphone, codem-phone
Dispatchps-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.

KeyDoes
Mouse wheelTurns a security camera on its arm.
Shift + wheelTips it.
QSwaps the kind.
FLooks 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.

OptionDefaultDescription
Cameras.EnabledtrueTurns cameras on.
Cameras.Price2500Each, paid from Properties.Account.
Cameras.Max4Cameras a house can have.
Cameras.Reach25.0Metres 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.Fov70.0Field of view at no zoom.
Cameras.Pitch-7.0Degrees a doorbell looks down.
Cameras.Pan, Tilt, TiltDown55.0, 22.0, 35.0How far each turns and tips.
Cameras.Zoom3.0Most each zooms in.
Cameras.Range22.0Metres 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-voice call together until either hangs up, the visitor walks more than Reach metres from the door, or Talk seconds 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).
OptionDefaultDescription
Intercom.EnabledtrueTurns the intercom on.
Intercom.Window90Seconds a ring can be answered in.
Intercom.Reach6.0Metres from the door the visitor stays on the line within.
Intercom.Talk300Seconds a call lasts at most.
Intercom.Voice'auto''auto', 'pma-voice', or false for picture and letting in without voice.
Intercom.Channel870000Voice call channels start here, one per house.
Intercom.MessagestrueA 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:

ModeBehaviour
AwayArmed after an exit delay of ExitDelay seconds. Anyone without a key inside sets it off.
At homeArmed 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.
  • WrongPins wrong 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.

OptionDefaultDescription
Alarm.EnabledtrueTurns the alarm on.
Alarm.Price6500Paid from Properties.Account.
Alarm.ExitDelay30Seconds to leave after arming away.
Alarm.Siren150Seconds the siren sounds.
Alarm.DispatchDelay20Seconds before the police are called.
Alarm.KeyDisarmstrueUnlocking a door as a household member disarms it.
Alarm.PinLength{ 4, 6 }Digits a PIN has, at least and at most.
Alarm.WrongPins3Wrong PINs in a row that set it off.
Alarm.AutoArm90Seconds after the house is left empty and locked that it arms itself.
Alarm.Motion2.0Seconds 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.

OptionDefaultDescription
Burglary.EnabledtrueTurns break-ins on.
Burglary.MinPolice0Police on duty needed before a lock can be picked.
Burglary.OwnerOnlinefalsetrue: only while the owner or a keyholder is on the server.
Burglary.Cooldown1800Seconds before a house can be broken into again.
Burglary.Pickslockpick, advancedlockpickItem name and its skill check rounds (ox_lib difficulties).
Burglary.Break0.35Chance a pick breaks when it fails.
Burglary.Keys{ 'w', 'a', 's', 'd' }The skill check's keys.
Burglary.Reinforced.Price9500What reinforcing every door costs.
Burglary.Reinforced.PicksadvancedlockpickWhat picks a reinforced door.
Burglary.Stash.EnabledtrueBreaking the stash open.
Burglary.Stash.Items{ 'screwdriverset', 'drill' }Tools that break it open.
Burglary.Stash.Time / Window14000 / 300Milliseconds 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.

SafeTierPriceSlotsWeight
Floor safehome75001560000
Steel safe, blacksteel1800025150000
Steel safe, oxblood and brasssteel2600025150000
Vault safevault6500040400000

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.

TierItems neededConsumedStagesStage timePoliceCooldown
homedrillnone420 s03600 s
steeldrill, electronickitelectronickit625 s25400 s
vaultdrill, thermitethermite830 s37200 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:

OptionDefaultDescription
Ram.EnabledtrueTurns the ram on.
Ram.Item'battering_ram'The item.
Ram.JobsnilJobs that may use it on duty: job name and lowest grade. nil uses Security.Police.
Ram.Hits3Full blows a door takes.
Ram.ReinforcedHits6Full blows a reinforced door takes.
Ram.RepairTime12000Milliseconds the household spends putting it back.
Ram.RepairCost0What that costs them (bank).
Ram.RepairAfter60Minutes after which a broken door is back anyway. 0: only when repaired.
Ram.Range / Ram.Volume35.0 / 0.9How far the blows are heard, and how loud.
Ram.CameratrueThe side camera while swinging.
Ram.Sensitivity1.0How 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).