Full View config.lua

Config = {}

Config.CoreDefine = "" -- if you use old ESX, set here "esx:getSharedObject"
Config.CoreExport = function()
	return exports['es_extended']:getSharedObject()
end

Config.Notification = function(message, time, type)
	if type == "success" then
		exports["vms_notify"]:Notification('GARAGE', message, time, '#32a832', 'fa fa-car')
		
	elseif type == "error" then
		exports["vms_notify"]:Notification('GARAGE', message, time, '#d63848', 'fa fa-car')
		
	elseif type == "info" then
		exports["vms_notify"]:Notification('GARAGE', message, time, '#3897d6', 'fa fa-car')

	end
end


Config.DrawDistance = 30.0

Config.ImpoundMarker = true
Config.ImpoundPrice = 2000

Config.SubOwners = false
Config.SubOwnersMarkers = false
Config.MaxSubs = 1

Config.HeadlightsColour = false

Config.ESXMenu_Align = 'left'


Config.Zones = {
	["Garages"] = {
		marker = {
			id = 36, 
			color = {r = 255, g = 244, b = 43}, 
			size = vec(1.5, 1.5, 1.5), 
			rotate = true
		},
		blip = {
			sprite = 50, 
			color = 62, 
			size = 0.6
		},
	},
	["Subowners"] = {
		coords = vec(-540.08, -205.56, 37.64),
		marker = {
			id = 2, 
			color = {r = 10, g = 200, b = 25}, 
			size = vec(0.75, 0.75, 0.75), 
			rotate = true
		},
		blip = {
			sprite = 811, 
			color = 46, 
			size = 0.9, 
			name = "Subowners"
		},
	},
	["Impounds"] = {
		marker = {
			id = 36, 
			color = {r = 235, g = 152, b = 52}, 
			size = vec(0.55, 0.55, 0.55), 
			rotate = true
		},
		blip = {
			sprite = 68, 
			color = 6, 
			size = 0.9, 
			name = "Impounds"
		},
	},
}

Config.Translate = {
	['store_veh'] = "Press ~INPUT_CONTEXT~ to put your vehicle",
	['release_veh'] = "Press ~INPUT_CONTEXT~ to open garage",
	['tow_veh'] = "Press ~INPUT_CONTEXT~ to open impound menu",
	['subowner_veh'] = "Press ~INPUT_CONTEXT~ to open subowner menu",
	
	['veh_released'] = "The vehicle has been pulled out",
	['veh_stored'] = "The vehicle has been putted to the garage",
	
	['max_subs'] = "Reached the maximum number of owners for this vehicle",
	['sub_added'] = "Added a new sub-owner",
	['you_are_sub'] = "You have become a co-owner of a vehicle with registration numbers %s",
	['not_owner'] = "You are not the owner of this vehicle",
	['not_veh'] = "You are not the owner of this vehicle or this vehicle doesnt exist",
	['sub_deleted'] = "Deleted subowner",
	['checking_veh'] = "Vehicle search in progress...",
	['veh_impounded'] = "You have towed a vehicle with a registration number %s",
	['no_money'] = "You doesnt have money to to tow this vehicle",
	['cant_impound'] = "You cannot tow this vehicle",
	['no_veh'] = "There is no such registration number!",
	['set_sub'] = "Add subowner",
	['manage_sub'] = "Manage subowners",
	['no_players'] = "No people around",
	['deleting_sub'] = "Removal of a co-owner - %s",
	['sure_delete'] = "Are you sure you want to remove the co-owner?",
	['no'] = "No",
	['yes'] = "Yes",
	['no_subs'] = "No co-owners for this vehicle",
	['veh_reg'] = "Plate",
	['owner_menu'] = "Owner menu - %s",
	
	['garage_blip'] = "Garage",
	['impound_blip'] = "Impound"
}

Config.Garages = {
	{Marker = vec(-926.21, -164.11, 41.98), Blip = true},
	[...]
}

Config.Impounds = {
	vector3(-239.47, -1166.16, 22.83)
	-- vec(-193.24, -1162.4, 23.68),
}

Config.VehNames = {
	['ninef'] = '9F',
	['ninef2'] = '9F Cabrio',
	['adder'] = 'Adder',
	['airbus'] = 'Airbus',
	[...]
}

Last updated