> For the complete documentation index, see [llms.txt](https://docs.brutalscripts.com/site/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.brutalscripts.com/site/scripts/mechanic-job/exports-triggers.md).

# exports / triggers

## Client Exports / Triggers

<table><thead><tr><th width="445" align="center">Export</th><th align="center">Result</th></tr></thead><tbody><tr><td align="center">exports.brutal_policejob:getAvailableMechanicsCount()</td><td align="center">Number of mechanicers on duty on the server.</td></tr><tr><td align="center">TriggerEvent('brutal_mechanicjob:client:ToggleDuty')</td><td align="center">Switch between the duty status. ON/FALSE</td></tr><tr><td align="center">TriggerEvent('brutal_mechanicjob:Towing')</td><td align="center">Start towing job </td></tr><tr><td align="center">TriggerEvent('brutal_mechanicjob:DiagnosticTablet')</td><td align="center">Open diagnostic tablet</td></tr></tbody></table>

For example:

```lua
local onliceMechanicers = exports.brutal_policejob:getAvailableMechanicsCount()
if onliceMechanicers >= 3 then
     print('enough mechanicers')
end
```

## Server Events

```lua
TriggerEvent('brutal_policejob:server:getAvailableMechanicsCount', source, function(value)
    onliceMechanicers =  value
end)

--With this event you can get the player's Duty status. (true = false)

local player_job_name = YOU_SHOULD_DEFINIED_IT
TriggerEvent('brutal_mechanicjob:server:GetDutyStatus', source, player_job_name, function(DutyStatus)
    if DutyStatus then
        print('Duty Status: true')
    else
        print('Duty Status: false')
    end
end)
```
