Exports

Client

IsCuffed

Check whether the local player or a target player is handcuffed.

local isCuffed = exports['ak47_policejob']:IsCuffed(targetServerId)
Parameter Type Required Description
targetServerId number No Target player server ID (defaults to local player)
  • Returns: boolean

IsBind

Check whether the local player or a target player is tied with rope.

local isBound = exports['ak47_policejob']:IsBind(targetServerId)
Parameter Type Required Description
targetServerId number No Target player server ID (defaults to local player)
  • Returns: boolean

IsBlind

Check whether the local player or a target player is blindfolded.

local isBlind = exports['ak47_policejob']:IsBlind(targetServerId)
Parameter Type Required Description
targetServerId number No Target player server ID (defaults to local player)
  • Returns: boolean

IsInTrunk

Check whether the local player or a target player is inside a vehicle trunk.

local inTrunk = exports['ak47_policejob']:IsInTrunk(targetServerId)
Parameter Type Required Description
targetServerId number No Target player server ID (defaults to local player)
  • Returns: boolean

IsInJail

Check whether the local player or a target player is currently in prison.

local inJail = exports['ak47_policejob']:IsInJail(targetServerId)
Parameter Type Required Description
targetServerId number No Target player server ID (defaults to local player)
  • Returns: boolean

IsInCommunity

Check whether the local player or a target player is serving community service.

local inCommunity = exports['ak47_policejob']:IsInCommunity(targetServerId)
Parameter Type Required Description
targetServerId number No Target player server ID (defaults to local player)
  • Returns: boolean

EvidenceDrop

Spawn an evidence item drop at specified world coordinates.

exports['ak47_policejob']:EvidenceDrop(type, position)
Parameter Type Required Description
type string Yes Evidence type (fingerprint, bulletshell, blooddrop)
position vector3 Yes World coordinates where evidence drops
  • Returns: void
-- Example usage:
local coords = GetEntityCoords(PlayerPedId())
exports['ak47_policejob']:EvidenceDrop('fingerprint', coords)
exports['ak47_policejob']:EvidenceDrop('bulletshell', coords)
exports['ak47_policejob']:EvidenceDrop('blooddrop', coords)

Note: Fingerprints require UV light inspection to reveal the marker for collection.