Item Support

The default item name for the GPS cartridge is "starchase_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.

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:

["starchase_cartridge"] = {"StarChase Cartridge","Cartridge for StarChase.",function(args) return starChaseReload end,0.1}

Last updated