⚙️
PHYSIX Documentation
Support
  • 👋Welcome to PHYSIX documentation
  • ❓Support center
  • 💩P6 Additional Needs
    • ⚠️Dependences
    • ⚙️Installation
    • 🔧Configuration
    • 📒Usage
  • 🛡️P6 Bodyguards
    • ⚠️Dependences
    • ⚙️Installation
    • 🔧Configuration
    • 📒Usage
  • 🌉P6 Bridge
    • ⚙️Installation
    • 📒Usage
    • 🪛Exports
      • 😀Client Exports
      • 🖥️Server Exports
  • 🚴P6 Gym
    • ⚠️Dependences
    • ⚙️Installation
    • 🔧Configuration
    • 📒Usage
  • ⚙️P6 Settings
    • ⚠️Dependences
    • ⚙️Installation
    • 🔧Configuration
    • 📒Usage
  • 📦P6 Spawner
    • ⚠️Dependences
    • ⚙️Installation
    • 🔧Configuration
    • 📒Usage
  • 📃P6 Whitelist
    • ⚠️Dependences
    • ⚙️Installation
    • 🔧Configuration
    • 📒Usage
    • 🪛Exports
      • 🖥️Server Exports
  • 🛡️P6 Zones
    • ⚠️Dependences
    • ⚙️Installation
    • 🔧Configuration
    • 📒Usage
    • 🪛Exports
      • 😀Client Exports
      • 🖥️Server Exports
  • 🛡️P6 Zones - Zombie Waves
    • ⚠️Dependences
    • ⚙️Installation
    • 🔧Configuration
    • 📒Usage
    • 🪛Exports
      • 😀Client Exports
      • 🖥️Server Exports
Powered by GitBook
On this page

Last updated 5 months ago

GetJobCategory

This export retrieve the job category for the job requested. Why is it useful? because in some mods as the origen_masterjob (the one we are offering full compatibility), business can be created dynamically ingame with different names; and with this export we can identify the specific job for the user to which job category belong.

For example:

Mechanic business named "exotic_motors" created with origen_masterjob, you want to integrate a mechanic mod that can be used only by all the mechanics (not only this business), with our export you can do this validation quick and easy

GetOnDutyPlayers

This export retrieve number of players in service for this job, integrated with origen dispatch so is not counting connected players only, it's filtering by the players which are on duty.

If you use this export to jobs that are not integrated with the configured dispatch, will return 0.

SendTaxiAlert

This event is used to manage a taxi call using the dispatch system, generating a notification to the taxi system and logging to discord

SendPoliceAlert

This event is used to manage a police call using the dispatch system, generating a notification to the police system and logging to discord

SendServicesAlert

This event is used to manage a police, ems and firefighter call using the dispatch system, generating a logging to discord

SendDiscord

This event is used to log to discord a specific action or message using the gateway

-- job_name must be the job you are trying to categorize
exports['p6_bridge']:GetJobCategory(job_name)
if exports['p6_bridge']:GetJobCategory(business_name) == 'mechanic' then
    -- Execute the code allowed to mechanics
else
    -- Display a notification with an error, player is not a mechanic
end
-- job_name must be the job you are trying to categorize
exports['p6_bridge']:GetOnDutyPlayers(job_name)
TriggerServerEvent("p6_bridge:sendTaxiAlert")
-- type: Type of alert (GENERAL, RADARS, 215, DRUGS, FORCE, 48X) This is to filter the alerts in the dashboard
-- title: Title of the alert
-- message: Alert message
-- metadata: Additional metadata of the alert (vehicle model, color, plate, speed, weapon, ammo type, name of the subject, unit)
TriggerServerEvent("p6_bridge:sendPoliceAlert", type, title, message, metadata)
-- type: Type of alert (GENERAL, RADARS, 215, DRUGS, FORCE, 48X) This is to filter the alerts in the dashboard
-- title: Title of the alert
-- message: Alert message
-- metadata: Additional metadata of the alert (vehicle model, color, plate, speed, weapon, ammo type, name of the subject, unit)
TriggerEvent("p6_bridge:sendServicesAlert", type, title, message, metadata)
-- type: Type of log (alerts, chat, command) you can add new ones in custom/server/logs.lua
-- title: Title of the message
-- message: Message text
-- metadata: Additional metadata of the alert (vehicle model, color, plate, speed, weapon, ammo type, name of the subject, unit)
TriggerServerEvent('p6_bridge:sendDiscord', type, title, message)
  1. 🌉P6 Bridge
  2. 🪛Exports

😀Client Exports

PreviousExportsNextServer Exports
  • GetJobCategory
  • GetOnDutyPlayers
  • SendTaxiAlert
  • SendPoliceAlert
  • SendServicesAlert
  • SendDiscord