Skip to main content
Call these from a client script, such as exports['redutzu-mdt']:Open().
Custom MDT pages have their own guide: RegisterPage and UnregisterPage.

MDT

Open

Open the MDT for the local player.

Close

Close the MDT. Does nothing if it’s already closed.

IsOpened

Check whether the MDT is open.

Admin panel

OpenAdmin

Open the admin panel. Players who aren’t MDT admins get an ERRORS.NOT_ADMIN toast.

CloseAdmin

Close the admin panel and stop any admin tool that’s running.

Interactions menu

IsInteractionsMenuOpen

Check whether the interactions menu is open. The menu keeps game input active, so use this to block your own keys.

RegisterInteractionPage

Add your own page to the interactions menu. build returns what the page shows, and onAction runs when the player picks a row. Pages are removed when your resource stops.

RemoveInteractionPage

Remove a page your resource registered.

RefreshInteractionPage

Rebuild a page if it’s on screen. Call it when the page’s data changes.

Officer

GetCallsign

Get the local player’s callsign.

GetStatus

Get the local player’s status.

GetOfficerData

Get a player’s duty, callsign and status. Leave src out for the local player.

Radio

GetPrimaryChannel

Get the frequency the local player talks on.

GetJoinedChannels

List every frequency the local player has joined, including ones they only listen to.

Cameras

IsViewingCamera

Check whether a CCTV, bodycam or dashcam view, or the photo camera, is on screen. Use it to skip your own key handling, such as a pause menu or phone, while a camera is open.

GetClosestCamera

Find the closest CCTV camera near the local player.

IsBodycamEnabled

Check whether the local player’s bodycam is on.

IsDashcamActive

Check whether a vehicle’s dashcam is on.