Arius Scripts
  • Resources
    • 🚘Arius Vehicleshop
      • ðŸ’ŧInstalation
      • 📰Configuration
      • ðŸŽĨPreview
    • ðŸ‘ŪArius Policejob
      • ðŸ’ŧInstallation
      • 📰Configuration
      • ðŸŽŊSuspect Interactions
      • 🔷Interactions
    • ðŸ’ļArius Billing
      • ðŸ’ŧInstallation
  • 🚑Arius Ambulancejob
    • ðŸ’ŧInstallation
    • 📰Configuration
      • ðŸĨAdd Hospitals
      • ðŸ‡ŦðŸ‡ēHospital Zone
      • ðŸ“ĶAdd Stashes
      • 🛒Add Shops
      • 🚗Add Garages
      • ðŸĶīAdd Injuries
    • ⚡Exports & Events
  • ðŸĶŒArius Hunting
    • ðŸ’ŧInstallation
    • 📰Configuration
      • ðŸŽŊTarget Setup
      • 🔓Aim Block
      • ⛹Campfire
      • ðŸđHunting Zones
Powered by GitBook
On this page
  • EXPORTS
  • EVENTS
  1. Arius Ambulancejob

Exports & Events

EXPORTS

How to check if a player is dead

  1. exports.ars_ambulancejob:isDead() -- returns true if dead
  2. LocalPlayer.state.dead -- returns true if dead
  3. local data = lib.callback.await('ars_ambulancejob:getData', false, targetServerId)
    local isDead = data.status.isDead

Usage example

RegisterCommand("test", function(source, args, rawCommand)
    local isDead = LocalPlayer.state.dead
    if isDead then
        print("player is dead")
    else
        print("alive")
    end    
end)

How to open distress call dialog

exports.ars_ambulancejob:createDistressCall()

Usage example

RegisterCommand("test2", function(source, args, rawCommand)
    exports.ars_ambulancejob:createDistressCall()
end)

How to open distress calls menu

exports.ars_ambulancejob:openDistressCalls()

Usage example

RegisterCommand("test3", function(source, args, rawCommand)
    exports.ars_ambulancejob:openDistressCalls()
end)

EVENTS

How to use heal event (client)

  1. TriggerEvent('ars_ambulancejob:healPlayer', {revive = true}) -- to revive player
  2. TriggerEvent('ars_ambulancejob:healPlayer', {heal = true}) -- to heal player
  3. TriggerEvent('ars_ambulancejob:healPlayer', {injury = true, bone = "head" }) -- to heal injury of player

Usage example

RegisterCommand("test4", function(source, args, rawCommand)
  TriggerEvent('ars_ambulancejob:healPlayer', {revive = true}) -- to revive player
end)

RegisterCommand("test5", function(source, args, rawCommand)
 TriggerEvent('ars_ambulancejob:healPlayer', {heal = true}) -- to heal player
end)

RegisterCommand("test6", function(source, args, rawCommand)
TriggerEvent('ars_ambulancejob:healPlayer', {injury = true, bone = "head" }) -- to heal injury of player
end)

Last updated 1 year ago

🚑
⚡