Browse docs
Client Exports
Call these exports from your resource's client Lua. Document creation, record queries and courtroom integrations belong in Server Exports.
Declare DOJ as a dependency in your resource's fxmanifest.lua:
dependency "sky_dojjob"
Tablet
Open(route?)
Opens a DOJ tablet application from an existing menu or interaction. Omitting the route opens the law application.
-- client.lua, inside your existing menu action
exports["sky_dojjob"]:Open("/tablet/doj/files")
-- Open the default law application.
exports["sky_dojjob"]:Open()
| Argument | Type | Description |
|---|---|---|
route | string? | Optional application route from the table below. Defaults to /tablet/doj/law. |
| Route | Application |
|---|---|
/tablet/doj/files | File Explorer, including citizen and vehicle files. |
/tablet/doj/shared-files | Shared Documents. |
/tablet/doj/law | Law management. |
/tablet/doj/offences | Offence catalogue. |
/tablet/doj/conditions | Court-condition orders. |
/tablet/doj/hearings | Hearings and courtroom workflow. |
/tablet/doj/elections | Elections. |
/tablet/doj | Alias for File Explorer. |
Return value: none. Open requests the application to open; it does not return an authorization result. Application and record permissions still apply. An unknown route is rejected with a client diagnostic.
This export opens an application, not an individual case or document. Do not append documentId, caseFileId or arbitrary paths expecting a record deep link. Select the saved record in Files. The specialist /tablet/doj/registers application also exists, but is disabled by default and is not needed for citizen or vehicle files.
Internal compatibility exports
These exports support the maintained shared-preview and radial integration. They are listed for completeness; use Open for a custom tablet entry point and the server document APIs for authorized record workflows.
| Export | Existing integration role |
|---|---|
CloseSharedDocumentPreview | Shared preview close callback and its existing focus lifecycle. |
GetDocumentPreviewLocales | Supplies the existing document preview's locale data. |
RequestSharedDocument | Existing asynchronous shared-document request callback contract. |
getRadialActions | Radial compatibility provider; currently returns an empty table. |
These callback contracts are not generic document import, print or permission-bypass APIs. Keep shared document viewing, sharing and printing in the established tablet workflow.