Origen Network Store
  • 👋Welcome to Origen Network Store
  • 🆘¿You need help?
  • ❓FAQS
  • 👮Origen Police
    • ⚠️Dependencies
    • 🔧Installation
      • SQL
      • Pma-Voice
    • 📙Guide of Use
      • 💻Police CAD
        • Dispatch
        • Citizen Search
        • Reports
        • Vehicles
        • Criminal Code
        • Search and Capture
        • Debtors
        • Federal Management
        • Agent Management
        • Security Cameras
        • Radio
        • Time Control
        • Operations
      • 📄Interaction Menu
      • 📹Vehicle Radar
      • 🚔Sirens System
      • 🔦Evidence System
      • 🎛️Mini Dispatch
      • 🚁Helicopter Camera
      • 🪪Badges
      • ⛓️Federal System
      • 🔫Holster
      • 🐕K9 Dog
    • ❓Frequent Questions
    • ⚙️Configuration
      • Framework
      • Armoury
      • Commands
      • Confiscate
      • Evidences
      • Federal
      • Holster
      • K9
      • Licenses
      • Markers
      • Names
      • Outfits
      • Permissions
      • Props
      • Radio
      • Vehicles
    • #️⃣Exports
      • Client Exports
      • Server Exports
  • 📻Origen Radio
    • ⚠️Dependencies
    • 🔧Installation
      • SQL
      • Pma-Voice
    • ⚙️Configuration
  • 🛠️Origen Admin
    • ⚠️Dependencies
    • 🔧Installation
      • SQL
  • 🏎️Origen Races
    • ⚠️Dependencies
    • 🔧Installation
      • SQL
    • #️⃣Exports
      • Client Exports
  • 🔫Origen Ilegal
    • ⚠️Dependencies
    • 🔧Installation
      • SQL
      • qb-inventory
    • 💬Commands
    • ♻️Exports
  • 🏚️Origen Housing
    • ⚠️Dependencies
    • 🔧Installation
      • SQL
    • ⚙️API
      • Exports
      • Hooks
      • Events
      • Scripts Support
        • 📱LB-Phone
  • 🚙Origen Parking
    • ⚠️Dependencies
    • 🔧Installation
      • QBCore SQL
      • ESX SQL
    • ⚙️Configuration
    • ♻️Exports
  • 💼origen_inventory
    • ⚠️Dependencies
    • 🔧Installation
      • SQL
    • ⛏️Scripts Support
      • 📱LB Phone
        • 2️From v2.1.14
      • 🏨QB Apartments
      • 🔫QB-Weapons
      • 🔨Jobs creator (Jaksam)
    • ♻️Exports
      • 🛥️Client Exports
      • ⚓Server
        • Hooks
    • How to
  • 🕵️‍♂️origen_hostage
    • 🔧Installation
  • 👷‍♂️Origen Masterjob
    • 🔧Installation
      • SQL
      • qb-inventory
      • qs-inventory
      • ox_inventory
    • ♻️Exports
  • ⌨️Origen Chat
    • 🔧Installation
    • ⚙️API
      • Exports
      • Events
  • QBCORE
    • 🍔origen_hud
      • ❔¿What is origen_hud?
      • 🔧Installations origen_hud
      • ❓FAQS origen_hud
    • 💬origen_notify
      • ❔¿What is origen_notify?
      • 🔧Installations origen_notify
      • ❓FAQS origen_notify
        • 🥬Snippets origen_notify
    • ⏸️origen_pausemenu
      • ❔¿What is origen_pausemenu?
      • 🔧Installations origen_pausemenu
      • ❓FAQS origen_pausemenu
      • 🔑EXPORTS origen_pausemenu
    • 🥷origen_blackmarket
      • ❔¿What is origen_blackmarket?
      • 🔧Installations origen_blackmarket
      • ❓FAQS origen_blackmarket
      • 🥬Snippets origen_blackmarket
    • 🧑‍🤝‍🧑origen_titlemenu
      • ❔¿What is origen_titlemenu?
      • 🔧Installations origen_titlemenu
      • ❓FAQS origen_titlemenu
      • 🥬Snippets origen_titles (soon)
    • 🚗origen_importheist
      • ❔¿What is origen_importheist?
      • 🔧Installations origen_importheist
      • ❓FAQS origen_importheist
      • 🥬Snippets origen_importheist (soon)
  • ESX
    • 🍔origen_hud
      • ❔¿What is origen_hud?
      • 🔧Installations origen_hud
      • ❓FAQS origen_hud
    • 💬origen_notify
      • ❔¿What is origen_notify?
      • 🔧Installations origen_notify
      • ❓FAQS origen_notify
      • 🥬Snippets origen_notify
    • ⏸️origen_pausemenu
      • ❔¿What is origen_pausemenu?
      • 🔧Installations origen_pausemenu
      • ❓FAQS origen_pausemenu
      • 🔑EXPORTS origen_pausemenu
    • 🧑‍🤝‍🧑origen_titlemenu
      • ❔¿What is origen_titlemenu?
      • 🔧Installations origen_titlemenu
      • ❓FAQS origen_titlemenu
      • 🥬Snippets origen_titles (soon)
    • 🚗origen_importheist
      • ❔¿What is origen_importheist?
      • 🔧Installations origen_importheist
      • ❓FAQS origen_importheist
      • 🥬Snippets origen_importheist (soon)
Powered by GitBook
On this page
  • SendAlert
  • IsOnDuty
  • RobVehicle
  • DisableAutoAlerts
  • IsInPrision
  • SpawnInFederal
  • SetFederal
  • SetWantedLevel
  • IsHandCuffed
  • CanOpenTablet
  • GetMinimunGrade
  • TogglePause
  • ShowBills
  • GetBills
  • Toggle
  1. Origen Police
  2. Exports

Client Exports

SendAlert

Send an alert to the police dispatch.

All data is optional except for (coords, title, and type).

-- coords: Coordinates vector3(x, y, z) in which the alert is triggered
-- title: Title of the alert
-- type: Type of alert (GENERAL, RADARS, 215, DRUGS, FORCE, 48X) This is to filter the alerts in the dashboard
-- message: Alert message
-- job: Job group related to the alert
-- metadata: Additional metadata of the alert (vehicle model, color, plate, speed, weapon, ammo type, name of the subject, unit)
TriggerServerEvent("SendAlert:police", {
    coords = vector3(0, 0, 0),
    title = 'Alert title',
    type = 'GENERAL',
    message = 'Alert message',
    job = 'police',
    metadata = {
        model = 'Vehicle label',
        color = {255, 255, 255},
        plate = 'PLATE',
        speed = '100 kmh',
        weapon = 'Weapon name',
        ammotype = 'AMMO_PISTOL',
        name = 'Subject name',
        unit = 'ADAM-10',
    }
})

Example of use

RegisterCommand('testalert', function(source, args, rawCommand)
    local coords = GetEntityCoords(PlayerPedId())
    TriggerServerEvent("SendAlert:police", {
        coords = coords,
        title = 'Test alert title',
        type = 'GENERAL',
        message = 'Test alert message',
        job = 'police',
    })
end)

IsOnDuty

Check if the player is on duty.

exports['origen_police']:IsOnDuty()

RobVehicle

Send a vehicle theft alert to the police.

exports['origen_police']:RobVehicle()

DisableAutoAlerts

Toggle automatic alerts.

exports['origen_police']:DisableAutoAlerts()

IsInPrision

Checks if the player is in jail.

exports['origen_police']:IsInPrision()

SpawnInFederal

Spawns the player in the federal location.

-- data: Player information (PlayerData)
exports['origen_police']:SpawnInFederal(data)

SetFederal

Set the player's federal timer with the specified duration in minutes.

-- time: Duration in minutes
-- danger: Danger (yes or no)
exports['origen_police']:SetFederal(time, danger)

SetWantedLevel

Set the player's wanted level.

-- level: Wanted level Min: 0, Max: 5
exports['origen_police']:SetWantedLevel(level)

IsHandCuffed

Check if the player is handcuffed.

-- Returns a bool if it is cuffed
exports['origen_police']:IsHandcuffed()

CanOpenTablet

Check if the player has access to the menu.

--Return a table with data (1: true or false, 2: job category, 3: penalfilter)
-- job: Player job
exports['origen_police']:CanOpenTablet(job)

GetMinimunGrade

-- Returns whether the player has the minimum grade to perform a specific action.
-- job: Player job
-- param: Action to perform
exports['origen_police']:GetMinimunGrade(job, action)

Example of use

if exports['origen_police']:GetMinimunGrade(job, 'RadioTab') >= job.grade.level then
    -- They have the grade to perform the action with their current job.
    return true
else
    -- They do not have the grade to perform the action with their current job.
    return false    
end

TogglePause

Toggle the police tablet.

-- bool: true/false
exports['origen_police']:TogglePause(bool)

ShowBills

Display the police fines menu.

-- Display player bills in menu
exports['origen_police']:ShowBills()

GetBills

Get a list of fines for the player.

-- Get player bills
exports['origen_police']:GetBills()

Toggle

Toggle radio communication.

exports['origen_police']:Toggle()

PreviousExportsNextServer Exports

Last updated 1 year ago

👮
#️⃣