Emergency Callouts - AtlasAttack/AtlasCoreDocumentation GitHub Wiki

To make a callout which emergency services can see, use the DispatcherClient.DispatchCallout() method.

This method takes a callout object which will contain information about the callout, a position where the callout will happen, and a callout target which will either alert the police, EMS, or both.

Examples: //Notifies the police of a ATM Robbery callout at the player's current position.

DispatcherClient.DispatchCallout(new Callout("10-35 : ATM Robbery", "Someone is breaking into an ATM!", Game.PlayerPed.Position, CalloutTarget.Police));

//Alerts all on-duty emergency services to an officer down at the player's position.

DispatcherClient.DispatchCallout(new Callout("10-99 : Officer Down", $"A police officer went down.", Game.PlayerPed.Position, CalloutTarget.Emergency));

When making callouts, the format of the callout name should be consistent, using the format 10-XX : [Callout Type]. You can reference any 10 code you wish, but try to use realistic ones where possible. (Not all in-game crimes have an equivalent real-world 10 code).