Super small script that just allows for a large readable page to be displayed via an export. Takes a header and a text, supports line breaks and fun stuff.
The script doesn't do anything by itself, and you'll have to implement it wherever you want. An example follows further down, that shows how it's implemented in cw-invasion (upcoming script, or maybe it's out already if we forget to update this readme) to show game rules.
exports['cw-popup']:showPopup(header, text)
Coming soon... maybe
Support, updates and script previews:
All our scripts are and will remain free. If you want to support what we do, you can buy us a coffee here:
Taken from cw-invasion
Config.RuleHeader = "Invasion"
Config.RuleText = "At random, two signed up people will be teamed up in a game of Invader. One will be an INVADER and one will be a TARGET. \n\n The goal of the invader is to hack the target, twice, without being noticed. \n The Goal of the target is to find the invader and ping them.\n\n The invader will get a marker for where the target is, and must get over there and successfully hack before the game really starts.\n As soon as the first hack is done, the target will be notified that they are in the game. The game lasts for "..Config.HackTime.. " seconds.\n Halfway through the game, the invader will have to complete a second hack. If the second hack is not completed at the end of the game, the target wins instead. \n\n Moving outside of the marked circle will mean the game comes to a draw.\n"
local function displayRules()
exports['cw-popup']:showPopup(Config.RuleHeader, Config.RuleText)
end
local menu = {
{
header = "Invasion Game 202X" ,
isMenuHeader = true
},
{
header = "Rules",
icon = "fas fa-chess-knight",
params = {
event = displayRules,
isAction = true
}
}
}
exports['qb-menu']:openMenu(menu)