QB-Core

Installation on QB-Core

1. QB-Core

Go to "qbcore/shared/items.lua" and paste the following code under the "QBShared.Items" section.

    gps                    = { name = 'gps', label = 'GPS', weight = 500, type = 'item', image = 'gps.png', unique = false, useable = true, shouldClose = true, combinable = nil, description = 'GPS' },

OX_Inventory

Go to "ox_inventory/data/items.lua" and paste the following code under the "return {" section.

	['gps'] = {
		label = 'GPS',
		weight = 200,
		stack = true,
		close = true,
		description = 'Used to connect to the GPS system.',
		client = {
			image = "gps.png",
		}
	},

For "gps.png" go to "ox_inventory/web/images" folder and upload a "PNG" file named "gps" there. The PNG file I used is below;

gps.png

NOTE: If you put the item name something other than "gps", you need to update the "itemName" section in the "kirep-gps/config.lua" file with the name you put.

Last updated