Item Support

The default item name for the GPS cartridge is "tracker_cartridge" and can be customised in the config.lua file. You'll be able to reload using the item instead of a command once setup. You should also enable your framework in the config file.

Once you have setup items, you can either press "use" on the item or continue to use the commands.

QBCore

You'll need to add the item to your shared.lua file. We've handled the rest.

ESX

You'll need to add the item to your database. We've handled the rest.

vRP

We've got some additional code you'll need to add.

Navigate to vrp/cfg/items.lua and add the following code anywhere within the file:

local starChaseReload = {}
starChaseReload["Load"] = {function(player,choice)
  local user_id = vRP.getUserId(player)
  if user_id ~= nil then
 TriggerEvent("Server:ReloadStarchase", player)
  end
end}

Inside the same file, navigate to the cfg.items section and add the following code to the table:

["tracker_cartridge"] = {"Tracker Cartridge","Cartridge for Police Tracker.",function(args) return starChaseReload end,0.1}

Last updated