๐ก zrx_tracker โ Advanced Tracker System
An advanced, optimized and fully configurable player tracking system for FiveM (ESX).
Perfect for police, EMS, faction and roleplay servers looking for a professional real-time tracking system.
๐ Features
- ๐ก Custom sync system with interval and live sync support
- ๐ฐ๏ธ Live blip sync inside OneSync range
- ๐ Coordinate blips outside OneSync range
- ๐จ Siren flash system (red/blue blip flashing)
- ๐ Water detection system
- ๐ Death detection system
- ๐ Optional notifications for all tracker actions
- ๐ฎ Job-based tracking restrictions
- ๐ค Shared job visibility groups
- ๐จ Custom colors per shared job
- ๐ Automatic blip sprite based on vehicle class
- ๐ง StateBag synchronized states
- ๐ชฃ Routing bucket support
- โ๏ธ Fully customizable notifications, strings and functions
- ๐ Optimized and fully synced
๐ฆ Requirements
- ox_lib
- oxmysql
- es_extended
โ๏ธ Installation
- Download the resource
- Place
zrx_trackerinto yourresourcesfolder - Add this to your
server.cfg
ensure zrx_tracker
- Edit
configuration/config.lua
๐ค Exports
Server
exports['zrx_tracker']:disableTracker(player, bool)
Disable or enable the tracker for a player.
๐ง StateBags
| Key | Type | Description |
|---|---|---|
| zrx_tracker:disable | boolean | Whether the tracker is disabled |
| zrx_tracker:hasItem | boolean | Whether the player has the tracker item |
| zrx_tracker:water | boolean | Whether the player is in water |
๐ก Events
| Event | Side | Description |
|---|---|---|
| zrx_tracker:server:onSend | server | Triggered when a tracker is sent to a player |
โ๏ธ Configuration Example
Config.Item = 'tracker'
Config.OnlyShowSameBucket = true
Config.Sync.live = true
Config.Sync.liveRefresh = 800
Config.Sync.time = 5
Config.Disable.water = true
Config.Disable.death = true
Config.ShowNotify.onSend = true
Config.ShowNotify.onRemove = true
Config.ShowNotify.onDeath = true
Config.ShowNotify.onWater = true
Config.BlockedJobs = {
unemployed = true,
}
Config.SharedJobs = {
{ police = { r=0,g=0,b=255 }, ambulance = { r=255,g=0,b=0 } },
}
Config.Blip.changeOwn = false
Config.Blip.extra.siren = true
Config.Blip.extra.heading = true
Config.Blip.extra.height = true
Config.Blip.extra.vision = true๐ Vehicle Blip Types
- main
- automobile
- bike
- heli
- boat
- plane
- submarine
- train
- trailer
- water
- death
๐ Notification Customization
Customize your own notification system inside:
configuration/function.lua
Example:
Config.Function.Notification = function(player, msg, title, type, color, time)
-- server: TriggerClientEvent
-- client: lib.notify(...)
endAll notification strings can be edited inside:
configuration/strings.lua
๐ Debug Logging
Config.Debug = false Config.DebugLevel = 'INFO'
Available levels:
- TRACE
- DEBUG
- INFO
- WARN
- ERROR
โก Performance
- Optimized sync handling
- Low resource usage
- OneSync optimized
- StateBag synchronized
- Production-ready
๐ ๏ธ Support
Need help or found a bug?
Discord: https://discord.gg/mcN25FJ33K