Hello,
I am working on a QBCore server and I need assistance with customizing the ambulance system in specific zones using polyzones. I want the ambulance system to behave differently depending on the zone the player is in.
For example:
- Normal system: When a player dies outside of certain zones, the default ambulance system applies: 5 minutes with bleeding and item loss.
- Custom system in specific zones: When a player dies within a designated zone (using polyzones), the system should trigger a custom response: 30 seconds respawn without bleeding or any item loss.
I’m trying to achieve the following:
- Detect when a player enters a specific zone.
- Modify the ambulance revive behavior in that zone (e.g., shorter respawn time, no bleeding, no item loss).
- Ensure that outside of the zone, the default ambulance system with the standard timer, bleeding, and item loss applies.
Has anyone done this before or have any suggestions on how to achieve this with polyzones or QBCore’s ambulance system? Any guidance or example code would be greatly appreciated.
Thank you!