Browse docs

Server: Escort

Reference for Server: Escort in policejob.

All exports

This page documents the supported public integration calls. Client values are never authoritative for police permissions, review decisions, evidence, offences, or billing.

Server Exports

Escort

escortToggle(sourceId, targetId)

  • Purpose: Starts or stops escorting the target player.
  • Returns: boolean, string?.
local success, reason = exports["sky_policejob"]:escortToggle(sourceId, targetId)

escortPutInVehicle(sourceId, targetId, netId?, seat?)

  • Purpose: Places the escorted player into a vehicle. Without netId the closest valid vehicle is used.
  • Returns: boolean, string?.
local success, reason = exports["sky_policejob"]:escortPutInVehicle(sourceId, targetId)

escortTakeOutVehicle(sourceId, targetId)

  • Purpose: Takes the escorted player out of a vehicle.
  • Returns: boolean, string?.
local success, reason = exports["sky_policejob"]:escortTakeOutVehicle(sourceId, targetId)