Skip to main content

Client Exports

Checks if an entity is being tracked (has any trackers attached).Parameters
  • entity: number
Returns
  • is_tracked: boolean
Example
Gets all tracker IDs attached to an entity.Parameters
  • entity: number
Returns
  • tracker_ids: string[]
Example
Checks if a specific tracker is attached to an entity.Parameters
  • entity: number
  • tracker_id: string
Returns
  • is_attached: boolean
Example
Gets the count of trackers attached to an entity.Parameters
  • entity: number
Returns
  • count: number
Example
Checks if the player is currently placing a tracker.Returns
  • is_placing: boolean
Example
Initiates tracker placement on a targeted vehicle. Finds the vehicle the player is looking at and attempts to place the tracker.Parameters
  • tracker_id: string
Returns
  • success: boolean
  • error_message?: string
Example
Places a tracker on a specific entity.Parameters
  • tracker_id: string
  • entity: number
Returns
  • success: boolean
  • error_message?: string
Example
Checks if the player is currently removing a tracker.Returns
  • is_removing: boolean
Example
Initiates tracker removal from a targeted vehicle.Returns
  • success: boolean
  • error_message?: string
Example
Removes a tracker from a specific entity.Parameters
  • entity: number
Returns
  • success: boolean
  • error_message?: string
Example
Checks if the GPS tracker NUI is currently open.Returns
  • is_open: boolean
Example
Opens the GPS tracker NUI.Example
Closes the GPS tracker NUI.Example
Toggles the GPS tracker NUI.Example
Gets all nearby vehicles that have trackers attached.Parameters
  • radius?: number (default: 50.0)
Returns
  • vehicles: {entity: number, tracker_ids: string[]}[]
Example
Gets the vehicle the player is currently in, if it has trackers.Returns
  • entity?: number
  • tracker_ids?: string[]
Example
Checks if the player’s current vehicle is being tracked.Returns
  • is_tracked: boolean
Example

Server Exports

Gets all active trackers in the system.Returns
  • trackers: {tracker_id: string, attached_entity: number}[]
Example
Gets a specific tracker by ID if it exists.Parameters
  • tracker_id: string
Returns
  • tracker?: {tracker_id: string, attached_entity: number}
Example
Gets full tracker info from database including routes and points.Parameters
  • tracker_id: string
Returns
  • tracker?: table
Example
Gets tracker info from database.Parameters
  • tracker_id: string
Returns
  • tracker?: {id: string, is_placed: boolean, placed_at: string, placed_by: string, placed_entity_identifier: string}
Example
Creates a tracker in the database.Parameters
  • tracker_id: string
Returns
  • success: boolean
Example
Checks if a tracker is currently active.Parameters
  • tracker_id: string
Returns
  • is_active: boolean
Example
Gets the count of active trackers.Returns
  • count: number
Example
Creates a tracker and attaches it to an entity.Parameters
  • tracker_id: string
  • entity: number
  • placer_identifier?: string
Returns
  • success: boolean
  • error_message?: string
Example
Attaches an existing tracker to an entity (without database upsert).Parameters
  • tracker_id: string
  • entity: number
Returns
  • success: boolean
Example
Checks if an entity is being tracked.Parameters
  • entity: number
Returns
  • is_tracked: boolean
Example
Gets all tracker IDs attached to an entity.Parameters
  • entity: number
Returns
  • tracker_ids: string[]
Example
Checks if an entity identifier is tracked.Parameters
  • entity_identifier: string
Returns
  • is_tracked: boolean
Example
Gets all trackers for an entity identifier from database.Parameters
  • entity_identifier: string
Returns
  • trackers: table
Example
Gets all trackers placed by a specific identifier.Parameters
  • identifier: string
Returns
  • trackers: table
Example
Gets the entity identifier for a given entity.Parameters
  • entity: number
Returns
  • identifier?: string
Example
Checks if an entity is persistent.Parameters
  • entity: number
Returns
  • is_persistent: boolean
Example
Removes all trackers from a given entity.Parameters
  • entity: number
Returns
  • removed_count: number
Example
Removes a specific tracker by ID.Parameters
  • tracker_id: string
Returns
  • success: boolean
Example
Removes all trackers from a given entity by identifier.Parameters
  • entity_identifier: string
Returns
  • removed_count: number
Example
Deletes a tracker if it has no access entries.Parameters
  • tracker_id: string
Example
Lists trackers accessible by a player.Parameters
  • source: number
  • page: number
  • page_size: number
  • search?: string
Returns
  • result: {total: number, page: number, page_size: number, hasMore: boolean, trackers: table}
Example
Lists trackers accessible by an identifier.Parameters
  • identifier: string
  • page: number
  • page_size: number
  • search?: string
Returns
  • result: {total: number, page: number, page_size: number, hasMore: boolean, trackers: table}
Example
Lists routes for a specific tracker.Parameters
  • tracker_id: string
  • page: number
  • page_size: number
Returns
  • result: table
Example
Grants access to a tracker for a player by source.Parameters
  • tracker_id: string
  • source: number
  • access_type: string (“view” | “full”)
Returns
  • success: boolean
Example
Grants access to a tracker for a specific identifier.Parameters
  • tracker_id: string
  • identifier: string
  • access_type: string (“view” | “full”)
Returns
  • success: boolean
Example
Revokes access to a tracker for a player.Parameters
  • tracker_id: string
  • source: number
Returns
  • success: boolean
Example
Revokes access to a tracker by identifier.Parameters
  • tracker_id: string
  • identifier: string
Returns
  • success: boolean
Example
Removes access and triggers cleanup event.Parameters
  • tracker_id: string
  • source: number
Returns
  • success: boolean
Example
Removes access by identifier and triggers cleanup event.Parameters
  • tracker_id: string
  • identifier: string
Returns
  • success: boolean
Example
Checks if a player has access to a specific tracker.Parameters
  • tracker_id: string
  • source: number
Returns
  • has_access: boolean
  • access_type?: string (“view” | “full”)
Example
Checks if an identifier has access to a specific tracker.Parameters
  • tracker_id: string
  • identifier: string
Returns
  • has_access: boolean
  • access_type?: string (“view” | “full”)
Example
Gets the access list for a tracker.Parameters
  • tracker_id: string
Returns
  • access_list: {identifier: string, access_type: string, granted_at: string}[]
Example
Updates the label of a tracker.Parameters
  • tracker_id: string
  • label: string
Returns
  • success: boolean
Example
Upserts a tracker with custom fields.Parameters
  • tracker_id: string
  • fields: {is_placed?: number, placed_at?: string, placed_by?: string, placed_entity_identifier?: string, placed_on_persistent_entity?: number, label?: string}
Returns
  • success: boolean
Example
Adds a tracker item to a player’s inventory.Parameters
  • source: number
  • tracker_id: string
Returns
  • success: boolean
Example
Removes a tracker item from a player’s inventory.Parameters
  • source: number
  • tracker_id: string
Returns
  • success: boolean
Example
Checks if inventory integration is enabled.Returns
  • is_enabled: boolean
Example