API v1.0.1 - KDani-99/FivePD-API GitHub Wiki
Returns whether the player is on/off duty.
Returns: <bool>
Example:
if(Utilities.IsPlayerOnDuty())
{
// Player is on duty
...
}Sets player duty status (on/off).
Params:
- onDuty
<bool>
Example:
...
SetPlayerDuty(true); // To set the player on duty
...Now you can request every FivePD service from plugins.
From 1.0.1, you don't need to pass the location (Vector3).
Services:
AmbulanceAirAmbulanceFireDeptCoronerAnimalControlTowTruckMechanicPrisonTransport
Example:
RequestService(Services.Ambulance);Extended with DepartmentShortname.