Custom Actions
Anatomy of an action
Config.QuickMenu = {
Enable = true,
Key = 'F6',
UseCommand = true,
CommandName = 'quickmenu',
canInteract = function(playerPed, targetPed)
return true, nil
end,
Actions = {
{
id = 'search',
order = 1,
label = 'quickmenu.actions.search.label',
icon = 'fa-solid fa-magnifying-glass',
requiredPermission = 'quick_search',
canExecute = function(playerPed, targetPed)
return true, nil
end,
onExecute = function(src, targetId)
QuickActions.Search(src, targetId)
end,
},
},
}Fields
Field
Type
Required
Description
Permission system
Adding your own permission flag
Example 1 โ revive a downed teammate
Example 2 โ give gang cash to a nearby member
Execution flow
Global gate โ canInteract
canInteractExtending QuickActions (optional)
QuickActions (optional)Last updated