This resource adds a panic button functionality to your FiveM server. When a player presses the panic button, the resource collects detailed location information and sends it to the Community CAD API.
- Collects detailed location information, including street name, crossing road name, zone name, and postal code.
- Sends location information to the Community CAD API when the panic button is pressed.
- Configurable options to enable or disable each piece of location information.
- Debug mode for printing debug information.
- Error handling for API requests.
The resource has two configuration files: config.lua for client-side options and server_config.lua for server-side options.
StreetName: Enable or disable the street name. Set totrueto enable,falseto disable.CrossingRoadName: Enable or disable the crossing road name. Set totrueto enable,falseto disable.ZoneName: Enable or disable the zone name. Set totrueto enable,falseto disable.PostalName: Enable or disable the postal code. Set totrueto enable,falseto disable.Api: The API key for the Community CAD API.ApiUrl: The URL of the Community CAD API.Debug: Enable or disable debug mode. Set totrueto enable,falseto disable.enableSonoranRadioEnable Sonoran Radio Intergration for thier Commands and UI Radio Panic Button Press. Set totrueto enable,falseto disable.
nearest-postal: This resource is used to get the nearest postal code. It must be installed on your server for the postal code feature to work.
/panic: Hit you panic Button, and sent it to Community CAD!/stop_panic: Un-hit you panic Button, and sent it to Community CAD!
If enableSonoranRadio is true
- Radio Panic Button
- Radio Hotkey and Commands
Please Refer to the Sonoran Radio Docs for more info!