qtarget

A completely rewritten and optimised targeting solution based on bt-target

Vehicle options

exports.qtarget:Vehicle(parameters)
Registers the defined options to display on all non-player peds.
AddEventHandler('eventname', function(data)
	print(data.label, data.num, data.entity)
end)

exports.qtarget:Vehicle({
	options = {
		{
			event = "eventname",
			icon = "fas fa-box-circle-check",
			label = "action 1",
			num = 1
		},
		{
			event = "eventname",
			icon = "fas fa-box-circle-check",
			label = "action 2",
			num = 2
		},
	},
	distance = 2
})
Options can be removed by calling the remove export, with all labels as entries in an array.
exports.qtarget:RemoveVehicle({
	'action 1', 'action 2'
})

Project maintained by overextended Hosted on GitHub Pages — Theme by mattgraham