Sal’s Kewl Korner

Home / Documentation / Sal's Kewl Iris

Sal's Kewl Iris — owner's manual

Body cameras and dashcams for any service your community runs. They record what the officer sees and every voice on scene, upload in the background, and can be searched, reviewed and replayed at terminals you place in the world, from an MDT or from a tablet. This manual covers installation, setup, daily use and troubleshooting for server owners.

documents resource version 0.1.0

Part 1

Start here

What the resource is, what it needs, how to install and update it, and the first things to set up.

1.1 What Sal's Kewl Iris is

Sal's Kewl Iris (sals_kewliris) gives the services on your server body cameras and dashcams: police, sheriff, state, fire, EMS, corrections, security, or anything else you define. Officers wear a camera you can see on the uniform, with a light that blinks while it records. Patrol cars carry a dashcam and a rear-seat camera.

A camera records what the officer sees and every voice on scene, and uploads in the background. Supervisors and investigators search, review and replay the footage at terminals you place in the world, from an MDT, or from a tablet.

There is no config file. Everything is set up in game, in the admin panel (/iris), and updates never touch your settings.

Version 0.1.0 is a test release. It has passed every automated check, but none of it has run on a live server yet. Run /iris bench on a real PC first (see Measuring it) and send us the report.

At a glance

  • A camera on the uniform. Six camera models of our own (center chest, slim chest, square front-screen, collar, shoulder, and a helmet camera for fire and EMS) on any of eleven mount points. Or use your own EUP body camera piece, and Iris adds only the light.
  • A light that behaves like a real one. It blinks, double-blinks or stays on, depending on the model, and only while recording.
  • Real video of what the officer sees, through a body-camera lens: a wide-angle curve, dark corners, grain, and black and white in the dark. 270p, 360p, 480p or 720p.
  • Every voice on scene: the officer, nearby players' voice chat, NPC lines, and chat captions.
  • Starts on its own from the radio emergency button, a drawn weapon, shots fired, an officer down, emergency lights, a foot pursuit or a unit going on scene, as each service chooses.
  • Dashcams with their own triggers, a dash overlay and a cabin camera.
  • Review with search, playback in sync, a transcript, filing, links to CAD calls, reports and evidence, Scene Replay in the world, and Export to video.
  • Records like a real evidence system: roles, an audit log nobody can edit, retention categories and integrity checks.

1.2 Requirements

  • A FiveM server on OneSync. qb-core, qbx_core, ESX or standalone.
  • For video and voices: somewhere to keep footage. That is your own storage bucket that speaks the S3 protocol (Cloudflare R2 is recommended; Backblaze B2, Wasabi and MinIO work too), hosted footage for Gold communities, or Fivemanage. Without one, Iris records positions, events and captions only. See Storage options.

Optional

ResourceWhat it adds
oxmysqlHolds the recording index. Without it, the index lives in the server's key-value store, up to 400 recordings.
ox_target or qb-targetMakes review terminals target zones. Without one, terminals use a key prompt.
Sal's Kewl DispatchThe radio emergency button starts the officer's camera.
Sal's Kewl NPC AI, the Public Safety Simulator, Sal's Kewl EMSNPC lines go into recordings with their exact words.
Sal's Kewl CAD and its bridge (sals_kewlcadbridge 2.15 or newer)Hosted footage, and the on-scene trigger.
lb-tabletA Footage app on the tablet.
Wraith ARS 2XPlate reader hits start dashcams and become searchable.

1.3 Installation

  1. Put the sals_kewliris folder in your server's resources folder. Keep the folder name exactly sals_kewliris: your settings are stored under that name.
  2. In server.cfg:
    ensure sals_kewliris
    add_ace group.admin sals_kewliris.admin allow
    Framework admins (qb, qbx, esx) can open the panel too, unless you turn that off in Access & items.
  3. Restart the server. The console prints one line, for example:
    [sals_kewliris] started: qb, storage replay, index oxmysql
  4. In game, type /iris. The admin panel opens. Continue with First-time setup.

1.4 Updating

Delete the old folder and drop in the new one, or copy over it. Either way your settings are safe: they live in the server's key-value store, not in the folder, so no update can overwrite them.

Before big changes, use Backup > Export settings in the panel anyway. Backup also lists your last saves, so you can restore an earlier one.

1.5 First-time setup

Open /iris and work down the panel. The defaults are sensible, so most screens can wait.

  1. Services. Define each service that wears cameras: its name, short name and color, the framework jobs that belong to it (or ACE groups on a standalone server), the camera model and mount it issues, whether stealth is allowed, and its triggers. A service can be marked private (see Roles and permissions). Police Department, Sheriff's Office and State Police ship switched on; Fire / EMS ships with the helmet camera, switched off.
  2. People & access. Grant roles: supervisor, reviewer, records or admin, by service and minimum grade, by ACE, or by character ID.
  3. Storage. Choose where footage goes. Until you do, Iris records positions, events and captions only. See Storage options.
  4. Cameras. Fit the camera to your uniforms: pick a model and mount, press Preview on my character, and move the sliders until it sits right.
  5. Stations. Place review terminals (see Terminals).

Press Save at the top of the panel to keep your changes. Settings marked restart take effect after the resource restarts.

Part 2

Where footage goes

Video and voices go to storage straight from the players' games. Your game server never carries them.

2.1 Storage options

Choose in /iris > Storage > Where footage goes:

ChoiceWhat it recordsWhere it is kept
replay (the default)Positions, events and captions. No video, no voices.On your game server
s3EverythingYour own bucket: Cloudflare R2, Backblaze B2, Wasabi or MinIO
hostedEverythingSal's Kewl hosted footage, for Gold communities
fivemanageEverythingFivemanage

Players' games upload straight to the storage you choose. The game server only hands out short-lived links, one piece at a time.

2.2 Your own bucket (Cloudflare R2)

Cloudflare R2 has no charge for playback and costs about $0.015 a GB a month to store footage. At the default 360p, an hour of footage is about 225 MB.

  1. In Cloudflare, create an R2 bucket (for example iris-footage).
  2. Create an R2 API token with Object Read & Write on that bucket. Note the Access Key ID, the Secret Access Key, and your account's S3 endpoint (https://<account id>.r2.cloudflarestorage.com).
  3. In game, open /iris > Storage:
    • Where footage goes: s3.
    • Bucket endpoint, Region auto, Bucket name. Leave Path-style addresses on.
    • Enter the Access key ID and Secret access key. They are write-only: the panel never shows them again, only their last four characters.
    If you prefer, put the keys in server.cfg instead:
    set sals_kewliris_s3_access "..."
    set sals_kewliris_s3_secret "..."
    Use set, never setr: setr sends the value to every player's game.
  4. Copy the Bucket CORS rule shown on the Storage screen into the bucket's CORS policy (R2: bucket > Settings > CORS policy). Without it, players' games cannot upload.
  5. Press Test the connection, then run /iris bench, which also tests an upload from the game.

2.3 Hosted footage (Gold)

Gold communities can let us host their footage instead of running a bucket. It's included in Gold, up to 500 GB of footage kept at once.

  • At 80%, your records staff and admins are warned.
  • At the limit, a recording in progress still records and uploads. The oldest uncategorized footage that isn't linked to anything is removed first, once it's past its minimum keep time, and you're told what went.

With hosted footage you also get:

  • The footage library in Sal's Kewl CAD, in a browser, linked to CAD incidents and reports.
  • Searchable speech: voices are transcribed, so the words are searchable.
  • Share links that expire, with areas blurred on request.
  • A cloud backup of your Iris settings.

Setting it up

  1. Link Iris to your CAD. With the CAD bridge running (sals_kewlcadbridge 2.15 or newer), there's nothing to set up. Without it, enter a CAD API key and signing secret in /iris > Storage (write-only), or put them in server.cfg with set sals_kewliris_hosted_key and set sals_kewliris_hosted_secret. Use set, never setr.
  2. In game: /iris > Storage > Where footage goes: hosted.
  3. In the server console, irishosted status confirms the link and shows how much of your allowance is in use.

If the server ever loses its saved data, irishosted restore in the server console brings back your settings from the cloud backup.

2.4 Fivemanage

Choose fivemanage in /iris > Storage and enter its API key. Fivemanage serves its own CORS, so there is no rule to copy.

Iris's Fivemanage support was written from Fivemanage's documentation and has not been tested against a live account yet. Run /iris bench after setting it up, and tell us if the upload check fails.

Part 3

Recording

What a camera captures, how officers use it, what starts it on its own, dashcams, and how footage looks.

3.1 What is recorded

Officers wear a camera while on duty in a service that issues one. The small indicator in the top right of their screen shows CAM while it's worn and REC with a timer while it records.

Video

The officer's own view, recorded through a body-camera lens. Pick the quality in Recording > Video quality: 360p is about 225 MB an hour, 480p about 400 MB, 720p about 1 GB. The look of the lens is set under Overlays > Lens.

Video is what the officer sees, so third person shows the back of their own head. Recording > First person while recording switches the view to first person on foot while recording.

The officer's voice

Recorded only while the game says they are talking, so only what was said out loud in game is kept.

Nearby players' voices

With video storage set up, players near a recording camera are recorded while they talk in voice chat, on their own game. Nothing said in Discord or another app is ever captured.

Every player sees a one-time notice when they join. Put a line in your server rules, for example:

Body cameras on this server record the voices of players near them.

Turn it off, change the range, or exempt staff with an ACE in /iris > Audio.

NPC voices

Lines spoken by NPCs from Sal's Kewl NPC AI, the Public Safety Simulator and Sal's Kewl EMS go into the recording with their exact words, along with what the officer said to them.

Captions

Plain chat near the camera, and /me and /do from any script that reports them.

Positions

The officer and up to 20 people and vehicles around them are logged several times a second, including 30 seconds before the camera started. That makes footage searchable by place and lets the console draw the scene and replay it.

Video before the start

Recording > Video before the start (seconds) keeps the last seconds of video while an officer is on duty, like a real pre-event buffer. It's off by default because it keeps the capture running all shift; check /iris bench before turning it on. The kept video appears in the console's Replay tab under Before the start.

3.2 Controls

Players can rebind every key in Settings > Key Bindings > FiveM.

ToDo this
Start recordingDouble-press the camera key (default K), like a real camera, so it never starts by accident
StopHold the camera key for 3 seconds
Mark a momentThe marker key (unbound by default)
Stealth modeThe stealth key (unbound by default), when the service allows it
DashcamThe dashcam key while driving (default L); hold it to stop
Review footageWalk up to a review terminal, use /footage (footage roles), or the Footage app on lb-tablet
Admin panel/iris
Measure the cost on this PC/iris bench (admins)

3.3 Automatic triggers

Besides the officer pressing the button, a camera can start on its own when:

  • the officer presses the radio emergency button in Sal's Kewl Dispatch;
  • they draw a weapon or fire;
  • they go down (wasabi_ambulance and other medical scripts; ped health otherwise);
  • a service vehicle's emergency lights come on nearby;
  • they finish a foot pursuit;
  • their unit goes on scene in Sal's Kewl CAD.

Each service picks its triggers in /iris > Triggers, a grid of services and triggers. The same screen sets how far the lights reach and how long a foot pursuit has to last.

The officer's game only notices; the server checks before anything starts.

3.4 Other dispatch scripts

Panic and officer-down alerts from ps-dispatch, cd_dispatch, qs-dispatch, rcore_dispatch and core_dispatch start the officer's camera when their service uses the Panic trigger.

The event names follow each script's documentation as we know it, so check them against the version you run. They're listed in /iris > Triggers > Other dispatch scripts, where you can change them and add your own.

An alert raised by a player's game only ever starts that player's own camera.

3.5 Dashcams

Which vehicles have one

  • a model on the list;
  • an emergency vehicle driven by a member of a dashcam service;
  • a vehicle with a dashcam kit installed on its plate.

What starts it

Emergency lights, the siren, a speed you set, a crash or hard braking, a rear door opening, a Wraith ARS 2X plate reader hit, or a body camera starting inside. The dashcam key (default L) starts it too.

What stops it

A few minutes after the last trigger, or once the vehicle stands empty. Holding the dashcam key stops it.

What it records

Whoever drives records it. Their game logs the vehicle, lights, siren, braking and speed several times a second. When they look through the windshield (first person), it also films the view, with a dash overlay of speed, heading, lights and siren.

The cabin camera lists who sits in the back. Their voices, nearby voices, NPC lines and chat go into the recording as they do for body cameras. A body camera started in the car is linked to the dashcam recording both ways.

Setting them up

Admins manage models, services, triggers and installed kits in /iris > Dashcams: which cameras a vehicle carries (front, cabin, rear), each start trigger, the speed in mph, how long after the last trigger it stops, how long empty before it stops, and the install kit item.

3.6 Overlays and the layout editor

/iris > Overlays is a drag-and-drop editor for what appears on footage.

  • What you can place: date and time, device serial, officer, callsign, badge, service, street, GPS-style coordinates, why the recording started, and free text. Dashcam layouts add speed, heading, lights and siren.
  • Burned in or drawn on playback. Each element is either burned into the video while recording or drawn when the footage is played.
  • Per service. Each service gets its own layout.
  • Frozen with the footage. The layout in use is saved with each recording, so editing it later never changes old footage.

The same screen holds the Lens settings: the wide-angle curve, dark corners, grain, black and white in the dark, and Flip the picture.

Part 4

Reviewing footage

Where footage is reviewed, what the console does, Scene Replay, and who may see what.

4.1 Terminals, /footage, MDTs and tablets

Review terminals

Walk to the desk, open /iris > Stations, and use Place a station where I am standing. Choose which roles and services may use it. With ox_target or qb-target the terminal is a target zone; otherwise players get a key prompt when they stand at it.

From anywhere

  • /footage (and a key players can bind) opens the review console from anywhere, for anyone with a footage role.
  • An MDT with its own button (ps-mdt, qs-mdt, redutzu-mdt): have the button run footage, or call exports.sals_kewliris:OpenConsole(src) on the server.
  • lb-tablet: when it's running, a Footage app appears on the tablet.

Wherever it's opened, the console shows only what the player's roles allow.

4.2 The review console

  • Search by name, callsign, ID, tag, note, street, link, or words spoken by NPCs and in chat. Filter by service, category, date and why the recording started.
  • Recording now lists cameras recording at this moment, for supervisors.
  • Playback: video with every voice in sync, the overlay drawn on top, and a timeline of events, markers and voices. A recording without video shows the positions instead.
  • Transcript: every voice, caption, NPC line and camera event in order. Click one to jump to that moment.
  • Filing: category, tags and notes.
  • Links to CAD calls, reports, evidence cases and other references.
  • Retention: how long the recording is kept (for roles allowed to change it).
  • Integrity: each uploaded piece is hashed and chained, and the console verifies the footage against the chain. The server keeps its own position track of the officer, and the console warns when the recorded positions wander from it.
  • Audit: every view, filing, link, retention change and deletion, with who and when. Nobody can edit it. A deleted recording keeps its record; only the footage goes.

4.3 Scene Replay and Export to video

Scene Replay

Every recording can be replayed in the world from the console's Replay tab. The scene is rebuilt around you only. You watch it from where the camera was: the officer's chest, the dash, the cabin, the rear, or a free camera. It's marked RECONSTRUCTION, because it's positions put back together, not video.

Keys during a replay: Space play or pause, Left and Right 5 seconds, Up and Down speed, C camera, E export, Esc leave.

Export to video

During a replay, press E to record up to 10 minutes of it as a video. The video is saved with the recording, credited to whoever exported it, and written to the audit log. This needs video storage.

4.4 Roles and permissions

Roles are granted in /iris > People & access, by service and minimum grade, by an ACE, or by character ID. Wearers need no grant: anyone on duty in a service with cameras is one.

RoleMay
WearerView and file their own recordings
SupervisorView and file; see Recording now
ReviewerView, file and link
RecordsView, file, link, change retention, delete, read the audit log
AdminEverything, everywhere, plus settings

Each grant has a scope: its own footage, its own service, chosen services, or all.

A private service (internal affairs, say) stays out of everyone else's view. Only its own members, a grant that names it, and admins see its footage, even when another grant's scope is all.

Shipped grants, which you can change: supervisors at grade 3 and up in PD and SO for their own service, reviewers at grade 4 and up in PD for all services, and records for group.admin.

4.5 Retention

Each category has its own keep time, like a real evidence system. Expired footage is removed from storage automatically; its record and audit trail stay. Edit the categories in /iris > Retention. The shipped ones:

CategoryKept for
Uncategorized30 days
Traffic stop60 days
Call for service90 days
Arrest1 year
Use of force3 years
TrainingUntil someone deletes it

New footage starts in the category set for its service. Filing it under another category changes how long it's kept. Records staff can also set a recording's retention by hand.

Part 5

Options

Features that are off until you turn them on.

5.1 Battery and docks

Off by default. Turn it on in /iris > Battery & docks. When it's on:

  • a camera lasts 12 hours recording;
  • it charges at docks you place (standing at the spot) and in vehicles;
  • the officer is warned at 20, 10 and 5 percent;
  • a flat camera will not record, even for a panic.

5.2 Stealth mode

When a service allows stealth (Services), its officers can switch the light and the beep off with a key they bind in Settings > Key Bindings > FiveM (Body camera: stealth mode). It stays off until the officer turns it on.

5.3 Inventory items

Off by default: everyone in a service with cameras has one. With Access & items > Camera is an inventory item on, Iris works with ox_inventory, qs-inventory, qb-inventory, ps-inventory, codem-inventory, tgiann-inventory, core_inventory, qbx and ESX. An inventory that doesn't answer lets the officer through.

/iris > Items shows ready-to-paste item definitions, and the download's items/icons/ folder has the pictures. Optionally, each camera model can be its own item (bodycam_k3 and so on).

5.4 Supervisor remote start

Turn on /iris > Supervisors & MDT > Supervisors can start cameras remotely. A supervisor can then start the camera of an on-duty officer in a service they supervise. The officer is always told who did it, and it goes in the audit log.

Part 6

Reference

Performance, measuring, troubleshooting and the developer interface.

6.1 Performance

  • Footage never goes through your game server. Players' games upload straight to your storage.
  • Nothing runs while nobody is recording.
  • The cameras are local props. No networked entities.
  • Lights are limited. They are drawn only for the nearest few officers within 20 meters (Cameras > Light visible within (meters) and Most lights drawn at once).

What recording costs depends on the player's PC and the video quality. Measure it with /iris bench.

6.2 Measuring it: /iris bench

/iris bench (admins) measures, on the PC it runs on:

  • frame rate when not recording;
  • which video formats the game's browser can record, and whether the mic works;
  • frame rate while recording at 270p, 360p, 480p and 720p, and the real size of an hour at each;
  • what 20 recording camera lights cost;
  • an upload from the game straight to your storage (this checks the CORS rule).

Stand somewhere busy and don't touch anything for about a minute. The report is saved in /iris > Health and printed in the server console. Send us that console line on Discord.

6.3 Troubleshooting

The picture is upside down

If the bench thumbnail (or footage) is upside down, turn on Overlays > Lens > Flip the picture.

Uploads fail, or footage has no video

  • Your own bucket: the Bucket CORS rule from the Storage screen must be in the bucket's CORS policy. Without it, players' games cannot upload.
  • Press Storage > Test the connection; it names the step that failed (the keys, the bucket name, the region).
  • Run /iris bench: its upload check tests the path from the game itself.

The officer's voice is missing

If the game's browser is not allowed to use the officer's microphone, they see a notice that their voice is not being recorded. The bench's microphone line shows the same thing on the PC it runs on.

Hosted footage says it isn't ready

Run irishosted status in the server console. It confirms the link to your CAD and shows how much of your allowance is in use, or says what's wrong.

My settings are gone after renaming the folder

Settings are stored under the resource's name. Rename the folder back to sals_kewliris and they return. If you must move them, use Backup > Export settings before and Import after.

A camera sits wrong on the uniform

Use Cameras > Fit the camera to your uniforms, with Preview on my character. Fittings are kept per model and mount.

A panic from another dispatch script doesn't start the camera

Check the event name in Triggers > Other dispatch scripts against the version you run, and that the officer's service has the Panic trigger on.

6.4 For developers

Server events Iris listens to. They are server-side only; a player's game cannot raise them.

TriggerEvent('sals_kewliris:trigger', { src = playerId, reason = 'traffic_stop' })
TriggerEvent('sals_kewl:npcSpoke', { entity = netId, speaker = 'Driver', text = 'I did not see the light.' })
TriggerEvent('sals_kewl:caption', { src = playerId, kind = 'me', text = 'reaches for the glovebox' })
TriggerEvent('sals_kewliris:onScene', { src = playerId })
-- Sal's Kewl Dispatch raises sals_kewldispatch:emergency itself; Sal's Kewl
-- NPC AI, the Public Safety Simulator and Sal's Kewl EMS raise sals_kewl:npcSpoke.

Server events Iris raises:

'sals_kewliris:recordingStarted'  -- { id, src, reason, service }
'sals_kewliris:recordingStopped'  -- { id, src, reason }
'sals_kewliris:linked'            -- { id, kind, ref, label }

Exports (server):

exports.sals_kewliris:IsRecording(src)                    -- recording?, id
exports.sals_kewliris:StartRecording(src, reason)         -- id or nil, why
exports.sals_kewliris:StopRecording(src, reason)
exports.sals_kewliris:AddMarker(src, label)
exports.sals_kewliris:AddCaption(src, text, kind)         -- kind: me | do | ooc | chat
exports.sals_kewliris:AddSpeech({ entity, coords, speaker, text })
exports.sals_kewliris:LinkRecording(id, kind, ref, label) -- kind: cad | report | evidence | case | other
exports.sals_kewliris:OpenConsole(src)                    -- from an MDT; still shows only what their roles allow
exports.sals_kewliris:RemoteStart(src, 'Sgt. Name')       -- a trusted script starts a camera; the officer is told
exports.sals_kewliris:InstallDashcam(plate)               -- a dashcam on this plate
exports.sals_kewliris:RemoveDashcam(plate)
exports.sals_kewliris:IsDashcamRecording(netId)

6.5 Support

0.1.0 hasn't run on a live server yet. These parts in particular need a real game to confirm, and your reports help:

  • the capture cost (/iris bench);
  • the camera fittings (the mount editor);
  • other scripts' event and export names, written from their documentation: other dispatch scripts, inventories, lb-tablet, Fivemanage and Wraith ARS 2X.

Ask, report a problem, or send your bench line on Discord.

Didn’t find it? Ask Squawky, or open a ticket on Discord and tell us what you already tried.