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
  • playerOnBed
  • Damages
  • Player Dead State
  • Check Death Stage
  • CreateOutfitMenu
  • RemoveOutfitMenu
  • ToggleMedicBag
  • RevivePlayer
  • Toggle Damages UI
  1. Assets & Guides
  2. Ambulance Job

Client Exports

Here you will find the list of usable exports for Police Job, 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.

REMEMBER ABOUT CLIENT SIDE AND SERVER SIDE IN CHOOSING EXPORT!


playerOnBed

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

    • Existing player server id

Return:

  • state: boolean


Damages

With this statebag you can get player damages.

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

    • Existing player server id

Return:

  • damages: table


Player Dead State

Use following statebag to check if player is dead

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

    • Existing player server id

Return:

  • stage: number [0 = not dead, 1 = in last stand, 2 = dead]


Check Death Stage

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

    • Existing player server id

Return:

  • stage: number [0 = not dead, 1 = in last stand, 2 = dead]


CreateOutfitMenu

Use following export to open outfit creator menu

exports['p_policejob']:CreateOutfitMenu()

You can also use a command

/medic_outfit

RemoveOutfitMenu

Use following export to open outfit remove menu

exports['p_policejob']:RemoveOutfitMenu()

You can also use a command

/remove_medic_outfit

ToggleMedicBag

You can use following export to toggle medic bag prop in player hand.

exports['p_ambulancejob']:ToggleMedicBag(state)
  • state: boolean

    • true / false


RevivePlayer

Use following event to revive player

TriggerEvent('p_ambulancejob:RevivePlayer')

Toggle Damages UI

Use following export to show player damages ui

exports['p_ambulancejob']:toggleDamageUI(state)
  • state: boolean

    • true / false

PreviousConfig FilesNextServer Exports

Last updated 4 months ago

🚑