๐Ÿ’ปServer

Exports

exports.randol_police:GetBodycamList()
exports.randol_police:GetActiveTrackers()
exports.randol_police:SetUnit(src, citizenid, unit, state)
exports.randol_police:DeleteUnits(citizenid) -- Should be called when firing someone.

States

Player(source).state.cuffed
Player(source).state.hasGsr
Entity(vehicle).state.isClamped

Events/Functions

AddEventHandler('randol_police:server:whoClamped', function(src, player, plate, state)
    -- This gets triggered when a vehicle is clamped/unclamped.
    -- player server id, player object, plate and state is passed through if you wanna do logging here.
    -- state will be true/false for clamped/unclamped
end)

function sentPedToJail(player)
    -- Gets triggered when you send a local ai ped to jail. Player object is passed through.
end

Last updated