Exports & Events
Client Exports
GetDeviceList
Returns device list.
Returns
- list:
{id: number; label: string; type: string; coords: vector3; location: string; date: string}
HasDevice
AddInteraction
Adds interaction to the devices.
Parameters
- ctx:
{id: string; devices: string[]; label: string; icon: string; accessRequired?: boolean; onInteract: function(entity, deviceId); isEnabled: function(entity, deviceId);}
Server Exports
GetDeviceList
GetDeviceListByUserId
AccessGive
AccessGiveByUserId
AccessRemove
AccessRemoveByUserId
AccessShare
Client Net Events
no-spy:close
Turns off all devices.
no-spy:devicemanager:menu
no-spy:glasses:use
Toggles spy glasses.
no-spy:glasses:putOn
Puts on glasses.
no-spy:glasses:remove
Removes glasses.
no-spy:glasses:activate
Activates glasses if equipped.
no-spy:glasses:deactivate
Deactivates glasses.
no-spy:cam:use
Starts cam placement.
no-spy:cam:connect
no-spy:cam:disconnect
Disconnects from cam.
no-spy:motionsensor:use
Starts motion sensor placement.
no-spy:motionsensor:notify
no-spy:photo:use
no-spy:photo:show
no-spy:photo:close
Closes photo.
no-spy:photo:ready
This event will be triggered by us when the photo is ready. You can change normal behavior by listening this event.
Parameters
- ctx:
{image: string; date: number}
Server Net Events
no-spy:photo:ready
This event will be triggered by us when the photo is ready. You can change normal behavior by listening this event.
Parameters
- ctx:
{image: string; date: number}
no-spy:cam:place
Places cam.
Parameters
- deviceCtx:
{label: string} - placementCtx:
{coords: vector3; rotation: vector3}
no-spy:motionsensor:notify
no-spy:motionsensor:place
Places motion sensor.
Parameters
- deviceCtx:
{label: string} - placementCtx:
{coords: vector3; rotation: vector3}