Waypoint Scripts
  • Waypoint Scripts
  • Store
  • Support Discord
  • Scripts
    • 🚑Waypoint AI EMS
      • 📝Setup
      • 🖥️Code Snippets
      • ❔FAQ
      • 📃Exports / Events
      • 🔢Telemetry
    • 🚕Waypoint AI Taxi
      • 📝Setup
      • 🖥️Code Snippets
      • 📃Exports / Events
      • 🔢Telemetry
    • 🎆Waypoint Fireworks
      • 📝Setup
    • 💡Waypoint Neons
      • 📝Setup
    • 🐕Waypoint Animals
      • 📝Setup
      • ❔FAQ
  • Free Scripts
    • 🚚Waypoint Tow / Hauling
    • 🛠️Waypoint Placeables
    • 🚦Waypoint Traffic Lights
    • 🧘‍♂️Waypoint Yogamats
    • 🖨️Waypoint Printer
    • 🚲Waypoint Pocket Bikes
    • 👻Waypoint Smoke Monster
    • 🪑Waypoint Seats
Powered by GitBook
On this page
  • Event Status:
  • Calculate Success Rate
  • Additional Notes
  1. Scripts
  2. Waypoint AI EMS

Telemetry

Setup the Telemetry to track reliability of AI EMS on your server.

I've included telemetry in this script in case you want to measure the reliability in your server.

This is optional and does not effect any functionality.

It is purely added as a way to see how reliable the AI EMS is able to complete the actions.

First you need to set Config.RecordTelemetry = true in the config.lua

Next create the table provided in ai_ems_telemetry.sql

Event Status:

  • started = Scenario started after ambulance and peds are dispatched

  • success = Player was succesfully brought to the hospital and checked in

  • timedout = The scenario never finished and Config.ScenarioTimeOut had elapsed, scenario is ended and the entities are cleaned up.

  • abandoned = EMS arrived on scene, but the downed player was no longer in the area or they were no longer dead. The scenario is then abandoned. Note this is not counted as a failure.

  • abandoned-dead = The scenario was abandoned because the EMS ped was dead. Ambulance and ped will get cleaned up. This is usually caused by other players killing the ped, getting run over by a car, etc.

  • success-forced-stuck = Something happened enroute that caused the ambulance to get permanently stuck for Config.StuckTime (default 3 minutes). At this point the player is force checked into the hospital using the event Config.HospitalRespawnEvent

  • success-forced-checkin = Ambulance made it to the hospital, but something happened causing player to not get brought to checkin location. After 10 seconds, force check them in

Calculate Success Rate

Using the above metrics you can calculate the success rate of AI EMS on your server.

SuccessRate = 
   (started - abandoned - abandoned-dead) / 
   (success + success-forced-stuck + success-forced-checkin)

Additional Notes

We have run the script on our server for over a year on our server and have observed a reliability of 93% on more than 4000 times it was used.

PreviousExports / EventsNextWaypoint AI Taxi

Last updated 2 months ago

🚑
🔢