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.
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.
To use the panic button, type /panic in the chat. The resource will collect the enabled location information and send it to the Community CAD API.