Installation

How to install PhoneTracker. Start this after ox_lib, your framework, your inventory, Newb_Bridge, and your phone resource.

Start this after ox_lib, your framework, your inventory, Newb_Bridge, and your phone resource. The bridge looks at what’s already running. If this script starts first, it can miss them.

Dependencies

Newb_Bridge, ox_lib, Server artifact and OneSync, and one supported phone resource. On start the script walks the adapter table with pairs and keeps the first name already started — that is not start-order priority. See Phones.

Add items and images

Paste from Item setup. Copy tracker.png from [INSTALL]/images/ into:

InventoryImage folder
ox_inventoryox_inventory/web/images/
qb-inventory / ps-inventoryhtml/images/
one_inventoryone_inventory/web/images/

Configure

Edit configs/config.lua:

  • Config.RequiredJob — job name → minimum grade (shipped police = 0). Array { 'police', 'sheriff' } or a single string also work.
  • Config.TrackerItem — usable item (tracker)
  • Config.PingCooldown — seconds between pings per player (10; 0 disables)
  • Config.Utility.Debug — shipped false

Using the item opens the handheld GPS overlay (digits only, max 10). qb-phone / charinfo overrides: OpenFindSourceByCharPhone in resource/open/server/phone_lookup.lua.

Add to server.cfg

Swap qbx_core / ox_inventory / lb-phone for whatever you actually run. The phone must be started before this resource.

ensure ox_lib
ensure qbx_core
ensure ox_inventory
ensure Newb_Bridge
ensure lb-phone
ensure MrNewbPhoneTracker

Restart the server

Restart after config or item changes.

On this page