Retro Radar
This section contains commands, events, and exports related to the script that you should be aware of. These are detailed separately for the client and server.
Key Bindings
Section titled โKey BindingsโKey bindings can be customized for each player in GTA 5 Settings > Keybinds > Fivem. These values are set by default. These key assignments will be active when using the script for the first time after initial setup.
| Action | Default Key |
|---|---|
| Radar Identifier Lock: | [DELETE] |
| Radar Edit Mode: | [END] |
| Front Plate Lock: | [PAGEUP] |
| Back Plate Lock: | [PAGEDOWN] |
Client Event & Exports
Section titled โClient Event & ExportsโAll configurable items are located in config.lua.
ALPR - Automatic License Plate Recognition
Section titled โALPR - Automatic License Plate RecognitionโClient Events
Section titled โClient Eventsโ1. Listening for Scanned Plates
Register a listener for the rs_radar:client:plateScanned event to receive data whenever a license plate is successfully captured by the system.
RegisterNetEvent('rs_radar:client:plateScanned', function(plate) print('Scanned Plate:', plate) -- Add your custom logic here (e.g., checking database, notifying police)end)2. Triggering a Plate Check
Use the rs_radar:client:plateCheck event to manually command the radar to scan or lock a specific plate. This is useful for keybinds or integration with other scripts.
-- Usage: plate (string), lock_plate (boolean)TriggerEvent('rs_radar:client:plateCheck', 'ABC1234', true)Integration Example Below is an example of how to automatically lock the radar when a specific target plate is detected:
local targetPlate = 'SUSPECT1'
RegisterNetEvent('rs_radar:client:plateScanned', function(plate) if plate == targetPlate then -- Automatically lock the radar on the detected target TriggerEvent('rs_radar:client:plateCheck', plate, true) print('Target identified and radar locked!') endend)