LoveRP Scripts
TebexDiscord
  • ⚠️FiveM Asset System
  • 🎮ESX Legacy 1.9
  • 🚍Bus Control
    • Home
    • Installation
    • Konfiguration
    • Bedienung
  • 🚦Dep Traffic Lights
    • Home
    • Installation
    • Administration
    • Funktionsweise
    • Developer
  • ❗ECall
    • Home
    • Installation
    • Funktionsweise
    • Administration
  • 📟EmergencyDispatch
    • Home
    • Installation
    • Administration
      • Allgemeine Einstellungen
      • Jobverwaltung
      • Funkverwaltung
      • Wachenverwaltung
      • Fahrzeugverwaltung
      • Stichwortverwaltung
      • Ehrenamt
      • Melder Konfigurator
      • VPC Integration
      • Krankenhäuser verwalten
    • Notruf Tablet
    • Leitstelle
      • Einsatzverwaltung
      • Ehrenamtliche Kräfte
      • Fahrzeugverwaltung
      • Leitstellenkarte
    • Melder
    • Funkgerät
    • Developer
      • Ambulance Job Integration
      • smartfires
      • "Toxic" Feuer Script
      • Robberies Creator
      • esx_holdup
      • rcore_gangs
      • loaf_tv
      • Voice System Anpassungen
      • Exports
    • Fehlerbehebungen
  • 🚒EmergencyLadder
    • Home
    • Installation
    • Bedienung
  • Developer
  • 🚏IBIS Control
    • Home
    • Installation
    • Dienstcomputer
    • Bordrechner
    • Leitstelle
    • Fahrgast
    • Administration
    • Developer
    • DLC: Traffic
      • Installation
      • Bedienung
      • Administration
  • 💊Medical Equipment
    • Home
    • Installation
    • Konfiguration
    • Bedienung
  • 🚊Railway Sim
    • Home
    • Installation
      • Bombardier Flexity
    • Konfiguration
    • Bedienung
    • Developer
  • Post Job
    • Home
    • Installation & Konfiguration
    • Bedienung
  • 🛏️Power Stretcher
    • Home
    • Installation & Konfiguration
    • Bedienung
  • 🎤Sepura Radio
    • Home
    • Installation
    • Bedienung des Funkgeräts
    • Whitelist
  • 🛠️Technical Dispatches
    • Home
    • Installation
    • Administration
    • Einsätze
      • Baum Einsatz
      • Bombenfund
      • Gas Einsatz
      • Glasscherben
      • Ölspur
      • Spreizer u. Glasmaster
      • Strom Einsätze
      • Tier Einsatz
      • Türöffnung
    • Credits
    • Developer
  • Traffic Display
    • Home
    • Installation & Konfiguration
    • Bedienung
    • Developer
  • 🎒Your Equipment
    • Home
    • Installation
    • Bedienung
    • Administration
Powered by GitBook
On this page
  • esx_ambulancejob
  • qb-ambulancejob
  • visn_are
  1. EmergencyDispatch
  2. Developer

Ambulance Job Integration

Last updated 3 months ago

esx_ambulancejob

Datei: client/main.lua Suche nach: function SendDistressSignal() Folgende Zeile in die function einfügen:

TriggerEvent('emergencydispatch:emergencycall:new', "ambulance", "bewusstlose Person (automatischer Notruf)", false)

qb-ambulancejob

Datei: client/dead.lua Am Ende der Datei folgendes hinzufügen:

local dispatchsended = false
Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0)
		if isDead or InLaststand then
			if dispatchsended == false then
				DrawTxt(0.94, 1.40, 1.0, 1.0, 0.6, "PRESS ~g~E~w~ TO SEND DISPATCH!", 255, 255, 255, 255)               
				if IsControlPressed(0, 38) then
					dispatchsended = true
					TriggerEvent('emergencydispatch:emergencycall:new', "ambulance", "bewusstlose Person (automatischer Notruf)", false)
				end
			else
				DrawTxt(0.94, 1.40, 1.0, 1.0, 0.6, "DISPATCH ~g~SENDED~w~!", 255, 255, 255, 255)
			end
		else
			dispatchsended = false
		end
	end
end)

visn_are

Diese Anleitung gilt für die visn_are Version 1. In V2 kann in der config.lua von visn_are EmergencyDispatch als Ziel des Anrufs gewählt werden.

Datei: shared/client/aremedical/are_medical.lua Suche nach: if IsDisabledControlJustPressed(0, 47) then Folgende Zeile hinzufügen:

TriggerEvent('emergencydispatch:emergencycall:new', "ambulance", "Bewusstlose Person (automatischer Notruf)", false)

📟
Page cover image