Main Script

This is the default configuration of the script. Take note that there is others configurations in the bridge files : Notification configuration, Custom dispatch script configuration, and more...

Config = {}

-- [string] β†’ The locale you want to use. If the locale does not exist, the script will use the default locale.
Config.locale = GetConvar("lyre_illegalmissions:locale", "en")

-- [string] β†’ The bridge you want to use. You can put a valid bridge or put "auto_detect" to let the script choose the best bridge for you.
Config.bridge = "auto_detect"

-- [boolean] β†’ If you want the script to check for updates. If the script is not up to date, it will print a message in the console.
Config.checkForUpdates = true

-- [string] β†’ The system you want to use to interact with the locations. You can put "marker" or "target"
Config.interactSystem = GetConvar("lyre_illegalmissions:target", "marker")

-- [boolean] β†’ If you want the background to be blurred when the menu is opened.
Config.backgroundBlur = true

-- [boolean] β†’ If you want the money gain to be multiplied by the number of members in the team (could add a real utility to make missions in team but it could break your server economy). Be careful with this option.
Config.multiplyMoneyGainPerMember = false

-- [string] β†’ The account where the money will be taken from and given to the players. You can put "money", "black_money" or "bank".
Config.usedAccount = "money"

-- [boolean] β†’ If you want the missions to be generated on the start of the script. So at the start of your server there is directly some missions to play.
Config.generateMaxMissionsOnStart = true

-- [table] β†’ The locations where the peds will spawn.
Config.locations = {
	["main"] = {
		ped = "s_m_y_blackops_01",
		name = "Mercenary",
		coords = vec4(714.91961669922, -1192.4388427734, 23.287549972534, 223.46815490723),
		markerStyle = "default", -- The style of the marker, only used if Config.interactSystem is set to "marker". You have to use a valid key from Config.markerStyles
		avalaibleMissions = {
			"gofast",
			"cartheft",
			"murderer",
			"moneytruck",
			"atm",
		},
		maxMissions = 40,
		generateMissionInterval = 20 * 60 * 1000, -- 20 minutes
	},
}

-- [table] β†’ The hud functions
Config.hud = {
	show = function()
		if GetResourceState("esx_hud") == "started" then
			ExecuteCommand("hud")
		end
		DisplayRadar(true)
	end,
	hide = function()
		if GetResourceState("esx_hud") == "started" then
			ExecuteCommand("hud")
		end
		DisplayRadar(false)
	end,
}

-- [table] β†’ The badges configuration
Config.badges = {
	[0] = {
		img = "badge-none.png",
		label = "Beginner",
	},
	[100] = {
		img = "badge-iron.png",
		label = "Iron",
	},
	[250] = {
		img = "badge-silver.png",
		label = "Silver",
	},
	[450] = {
		img = "badge-gold.png",
		label = "Gold",
	},
	[700] = {
		img = "badge-amethyst.png",
		label = "Amethyst",
	},
	[1000] = {
		img = "badge-ruby.png",
		label = "Ruby",
	},
}

-- [table] β†’ The styles for the markers, only used if Config.interactSystem is set to "marker"
Config.markerStyles = {
	["default"] = {
		["far"] = {
			{
				type = 6,
				size = vec3(1.0, 1.0, 1.0),
				rotation = vec3(270.0, 0.0, 0.0),
				offset = vec3(0.0, 0.0, 0.0),
				bobUpAndDown = false,
				faceCamera = false,
				rotate = false,
				color = { r = 200, g = 25, b = 25, a = 150 },
			},
		},
		["near"] = {
			{
				type = 6,
				size = vec3(1.0, 1.0, 1.0),
				rotation = vec3(270.0, 0.0, 0.0),
				offset = vec3(0.0, 0.0, 0.0),
				bobUpAndDown = false,
				faceCamera = false,
				rotate = false,
				color = { r = 200, g = 100, b = 100, a = 150 },
			},
		},
	},
}

Last updated