📝Examples
type = "toggle" {
id = "utilities",
title = "UTILITIES",
icon = "fa-solid fa-gear",
type = "toggle",
items = {
{
label = "CAMERA AFK", -- native resource function
description = "Turn off the camera when it is idle",
icon = "fa-solid fa-camera",
action = "toggleAfkCam",
default = false
},
{
label = "AUTO HELMET", -- native resource function
description = "Automatically putting on a helmet on motorcycles",
icon = "fa-solid fa-motorcycle",
action = "toggleAutoHelmet",
default = false
},
{ -- native resource function (pelo.lua)
label = "ALTERNATE HAIR",
description = "Activate/deactivate hair",
icon = "fa-solid fa-user",
action = "togglePelo",
default = false
},
}
}, type = "mixed",{
id = "editor",
title = "ROCKSTAR EDITOR",
icon = "fa-solid fa-video",
type = "mixed",
sections = {
{
type = "title",
text = "RECORD"
},
{
type = "buttons",
buttons = {
{
label = "RECORD",
icon = "fa-solid fa-circle", -- FA FAS ICON
color = "#ff0000", -- ICON COLOR
action = "record", --ACTION IN "options.lua"
col = 6 -- SIZE (6 OR 12)
},
{
label = "RULE OUT",
icon = "fa-solid fa-trash",
action = "discard",
col = 6
},
{
label = "SAVE CLIP",
icon = "fa-solid fa-floppy-disk",
action = "save",
col = 6
},
{
label = "OPEN EDITOR",
icon = "fa-solid fa-film",
action = "openEditor",
col = 6
}
}
},Última actualización