# Ambulance Job Integration

## esx\_ambulancejob

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

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

<figure><img src="/files/Dy2ww7FSPUws9IiYo3T7" alt=""><figcaption></figcaption></figure>

## qb-ambulancejob

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

```lua
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

{% hint style="info" %}
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.
{% endhint %}

Datei: shared/client/aremedica&#x6C;*/*&#x61;r&#x65;*\_*&#x6D;edical.lua\
\
Suche nach: if IsDisabledControlJustPressed(0, 47) then\
\
Folgende Zeile hinzufügen:

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

<figure><img src="/files/CBfVVBVPCKECItUXS4vU" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.loverp-scripts.de/love-rp-de/emergencydispatch/developer/ambulance-job-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
