Returns device list.
list: {id: number; label: string; type: string; coords: vector3; location: string; date: string}
Returns device id from entity.
entity: number
deviceId?: number
Returns has access to given device id.
deviceId: number
hasAccess: boolean
Adds interaction to the devices.
ctx: {id: string; devices: string[]; label: string; icon: string; accessRequired?: boolean; onInteract: function(entity, deviceId); isEnabled: function(entity, deviceId);}
source: number
list: {id: number; label: string; type: string; owned: boolean; coords: vector3; netId: number; date: string}
userId: number
Grants device access to the given source.
success: boolean
Grants device access to the given userId.
Removes device access from the given source.
Removes device access from the given userId.
Resets device accesses.
Shares access with given target if player has access.
targetSource: number
Removes device entirely.
Turns off all devices.
Opens the devices menu.
type?: cam | motionsensor
Toggles spy glasses.
Puts on glasses.
Removes glasses.
Activates glasses if equipped.
Deactivates glasses.
Starts cam placement.
Connects to cam.
Disconnects from cam.
Starts motion sensor placement.
Sends sensor notification.
deviceLabel: string
Toggles photo.
ctx: {image: string, date?: number}
Shows photo.
Closes photo.
This event will be triggered by us when the photo is ready. You can change normal behavior by listening this event.
ctx: {image: string; date: number}
Places cam.
deviceCtx: {label: string}
placementCtx: {coords: vector3; rotation: vector3}
Sends sensor notification to device owners.
Places motion sensor.
Last updated 1 year ago