pScripts
  • INFORMATION
    • FiveM Asset Escrow System
    • Assets Updates
    • Discord Roles
  • Assets & Guides
    • 🏛️Banking
      • 👋Installation Guide
      • ⚙️Editable Files
      • Client Exports
      • Server Exports
    • 👨‍⚖️DOJ Job
      • 👋Installation Guide
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 💻DOJ MDT
      • 👋Installation Guide
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 🌿Weed Plants
      • 👋Installation Guide
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 🚗Car Sale Job
      • 👋Installation Guide
      • ⚙️Config File
      • Client Exports
      • Server Exports
    • 📙Job Core
      • ⚙️Config File
      • Exports
    • 👮Police Job
      • 👋Installation Guide
      • ⚠️Common Issues
      • ⁉️Setup Server
      • ⚙️Config Files
      • Client Exports
        • Bodycam
        • Evidence System
        • Duty GPS
        • Interactions
        • Jail System
        • Police Objects
        • Speed Camera
        • Manage Traffic
        • Misc
      • Server Exports
        • Evidence System
        • Interactions
        • Jail System
        • Misc
    • 💻Police MDT
      • ⁉️Setup Server
      • ⚙️Config File
      • Client Exports
      • Server Exports
      • Dispatch System
    • 🚑Ambulance Job
      • 👋Installation Guide
      • ⁉️Setup Server
      • ⚙️Config Files
      • Client Exports
      • Server Exports
    • 💻Ambulance MDT
      • 👋Installation Guide
      • ⚙️Config File
      • Exports and Events
      • Dispatch System
    • 🛠️Mechanic Job
      • ⚙️Config Files
      • Mileage System
      • Nitro System
      • Lifters System
      • Misc
    • 💻Mechanic MDT
      • ⚙️Config File
      • Exports
      • Dispatch System
      • Licenses System
    • 💵Fleeca Robbery
      • 👋Installation Guide
      • ⚙️Config File
    • ⌚Jewelry Robbery
      • 👋Installation Guide
      • ⚙️Config File
    • 💇Appearance
      • ⚙️Config Files
      • Client Exports
    • 👀Hints
      • Exports
    • 👋Helper
      • Exports
    • 🔧Tuning Menu
      • Exports and Events
      • ⚙️Config Files
    • 🆔Documents
      • ⚙️Config File
      • Exports and Events
    • 📱Phone
      • ⤵️INSTALLATION
      • ⚙️CONFIG FILES
      • 📃FEATURES
      • 📱APPS
      • 📇SIM CARDS
      • 📳NOTIFICATIONS
      • 📨MESSAGES
      • 🚘GARAGES
      • 🪙CRYPTO
      • 🔪DARK CONNECT
      • ⌨️FUNCTIONS
      • 🌎LANGUAGE
      • ⚠️COMMON ISSUES
    • 🪙Casino Games
      • 🎰Slot Machine
      • 🏐Roulette
      • ♣️Poker
    • 💻GCT
      • 📨EXPORTS
    • 💻Civil MDT
      • ⤵️INSTALLATION
      • 📱APPS
      • 🏎️BOOSTING
      • 🏅ACHIEVEMENTS
      • ⚠️COMMON ISSUES
Powered by GitBook
On this page
  • IsGptOpen
  • OpenGPT
  • getLicenses
  • CheckPlayerLicense
  • GetPlayerLicenses
  • licenseData
  1. Assets & Guides
  2. Police MDT

Client Exports

Here you will find the list of usable exports for Police MDT, you can use them if you have basic or advanced programming knowledge, we do not recommend using these if you do not have such knowledge.

IsGptOpen

Use following statebag to check if gpt is currently open.

LocalPlayer.state.GptOpen

Player(playerId).state.GptOpen
  • playerId: number

    • Existing player server id

Return:

  • state: boolean


OpenGPT

Use following export / event to open gpt.

exports['piotreq_gpt']:OpenGPT()
TriggerEvent('piotreq_gpt:OpenGPT')

getLicenses

Get police licenses from config.

exports['piotreq_gpt']:getLicenses()

Return:

  • object: { [licenseType]: licenseData }

    • licenseType: string

    • licenseData: table[label: string, access: { [jobName]: jobGrade }]


CheckPlayerLicense

Use following callback to check if player has police license.

lib.callback.await('piotreq_gpt:CheckPlayerLicense', false, licenseName)
  • licenseName: string

    • License name from config

Return:

  • state: boolean


GetPlayerLicenses

Use following callback to get player all police licenses.

lib.callback.await('piotreq_gpt:GetPlayerLicenses', false)

Return:

  • licenses: licenseData

licenseData

  • id: number

  • owner: string | player identifier

  • type: string | license name

  • label: string | license label

PreviousConfig FileNextServer Exports

Last updated 5 months ago

💻