/Renewed-Dutyblips

Optimized duty script for ox_inventory

Primary LanguageLuaGNU General Public License v3.0GPL-3.0

Renewed Duty Blips

Consider supporting me on ko-fi

Description

A Dutyblip script that updates blips based on the players job and statebag.

Features

  • Optimized, (2x-3x faster than similar dutyscripts like qb-policejob)
  • up to 80% less network usage than other duty scripts
  • Tracking with GPS tracker item
  • Framework duty blips (can be used without ox_inventory dependency)
  • Configurable blips
  • Blips per vehicle class
  • Blips per job
  • Statebag support (Blips will INSANTLY change to player attached blips as soon as they are close enough)

Dependencies

  • Renewed-Lib
  • Ox_Inventory
  • Ox_lib
  • Esx/Qbox/QB/ox_core

Installation

  1. Download the resource
  2. Put it in your resources folder
  3. Add ensure renewed_dutyblips to your server.cfg
  4. Add the following code to your ox_inventory/data/items.lua
	['gps_tracker'] = {
		label = 'Police Tracker',
		weight = 1000,
		stack = false,
		consume = 0,
		server = {
			export = 'Renewed-Dutyblips.toggleItem'
		}
	},

Credits

Thanks to MikeyXB for the tracker image