Ambulance alerts
This system is not exclusive to ESX, but we provide an example using it since QBcore includes its own integrated system, making this modification unnecessary. However, you can adapt it creatively for either ESX or QBcore.
The example uses esx_ambulancejob; if you use another asset, you’ll need to adapt it. Quasar Smartphone includes a convenient messaging system for workers, like in this example where a dispatch is triggered when a player dies, notifying the ambulance with their location.
Ambulance Dispatch through Business app
We can use the dispatch system through the business app using the following code. Remember that we will give all the examples using esx_ambulancejob, you can use another asset and adapt it your way, customizing it and leaving it ready for your server.
Ambulance Dispatch using Messages app
The option via Messages is not a bad option but we will prefer to use the superior Business option, in any case we will leave the snippet and its use below.
Last updated