You can find config file in
no-gps-tracker/config/shared.luaInventory
| Option | Type | Description |
|---|---|---|
| Enabled | boolean | Enable or disable the GPS tracker inventory item functionality |
| TrackerItemName | string | The name of the GPS tracker item in the inventory system |
Tracker
| Option | Type | Description |
|---|---|---|
| ControllerInterval | number | Interval in milliseconds for how often the tracker controller ticks to record data points. Higher values reduce server load but decrease tracking accuracy. Minimum recommended is 2000 (2 seconds) |
| GlobalVehicleScanInterval | number | Interval in milliseconds for how often to scan all vehicles for trackers that are not currently attached. Minimum recommended is 30000 (30 seconds) |
| DeleteTrackerIfNoAccess | boolean | Deletes tracker if no one has access to it anymore. Good for cleanup of abandoned trackers |
Custom Functions
GetEntityIdentifier
Gets entity identifier (plate, VIN, etc). Returnnil if you don’t want this entity to be tracked.
GetIsEntityPersistent
Checks if entity is persistent (can be found later like player vehicles). This is required for optimized tracker lookups.For best performance, use fast checks like
Entity(entity).state.is_owned instead of database queries in GetIsEntityPersistent, as this function is called frequently.
