Tasks
The config.tasks section outlines the behaviors of the internal mini-games shown on the NUI overlay.
config.tasks = {
['replace_sign'] = {
label = 'Replace Road Signs',
description = 'Replace damaged or missing road signs along the designated route.',
exp = 100,
payment = 50,
ui = {
title = "Switching the sign",
description = "To properly perform the operation, unscrew the switch screws and then turn them on.",
icon = "roadsign",
tutorial = {
title = "How to replace road signs?",
content = "...",
video = ""
},
controls = {
{ label = "to tighten the screw.", key = "RPM", icon = "MouseRightClick" },
{ label = "to loosen the screw.", key = "LPM", icon = "MouseLeftClick" },
},
steps = {
['UNSCREWING'] = "Unscrew the highlighted screws",
['COMPLETE'] = "Task Completed"
}
}
},
}Adding and Modifying Tutorials
Every task displays a sleek visual prompt to the player. The config dictates step-by-step texts. Note that the actual keys (LMB/RMB) and logic are natively hardcoded in the client scripts, but you can freely customize the:
exp: Raw EXP deposited to the player's account completing it.payment: Money appended to the lobby's pending payout structure (multiplied later bylevels).ui.tutorial: Contains text hints or web URLs forvideocomponents appearing in the "How to play" UI section.