Commands
This section lists all available commands included in the script. Each command is designed to simplify administration, player interaction, or debugging tasks. You’ll find detailed descriptions, usage examples, and permission requirements to help you manage and customize your server efficiently.
| Command | Description |
/cad | Open the police CAD (dispatch, search, radio, management) |
/policeadmin | Open the police admin interface (settings, markers, permissions) |
/rpol [message] | Use /rpol <message> in chat. |
Client Exports
This section provides all available client exports for the script. These functions allow you to interact directly with the system from the client side, enabling custom features, UI interactions, and integrations with other resources. Each export includes a short description and usage example for easy implementation.
Server Exports
This section provides all available server exports for the script. These functions allow developers to interact with the system from the server side, manage data, trigger actions, and integrate with other resources. Each export includes a clear description and a practical example to simplify its implementation.
GetPlayerInfo (Server-Side) lets you retrieve detailed player, vehicle, and location data directly from the server using a player’s source. It’s useful for building dispatches, logs, and any system that needs player context without relying on client logic.
Basic Usage
Gets player info safely and prints coordinates.
Street Formatting
Builds a proper street name including intersections.
Vehicle Detection
Checks if the player is in a vehicle and prints details.
Build Summary
Creates a simple readable summary for logs or dispatch.
Full Safe Pattern (Recommended)
Handles all edge cases and builds a complete description.
This function is server-side and depends on the player being connected, so you should always validate the source before using it. You should never assume it returns data, and always check fields like vehicle before accessing them to avoid errors. It’s designed to simplify your code by replacing multiple native calls, and works especially well for dispatch systems, logs, and automated detections where you need clean and reliable player context.
