Skip to content
ZDP Scripts
GitHub Discord

馃槉 zdp-quickmenu

Introduction (EN)

An new quick-access menu, crafted to smooth out your gameplay experience. Forget the fuss: with just a few clicks, customize the logo, images, and colors to match your server鈥檚 vibe. Because we know every detail matters and we want you to feel right at home.

Usage Example

config.lua
-- Change the default key here to open the menu
-- (The user can change it in their game settings)
Config.OpenKeyMenu = 'q'

-- Change the default menu colors
Config.Colors = {
    background = '#292929f1',
    hover = '#0084f0d2'
}

-- Change the center logo
Config.LogoIMG = 'logo.png'
config.lua
Config.Buttons = {
    -- action = name of the RegisterNUICallback
    {
        img = 'hat.png', -- Change the button image
        action = 'action1' -- Change the name of the NUICallback
    },
    {
        img = 'hair-cut.png',
        action = 'action2'
    },
    ...
}
client/actions.lua
-- Register the Config.Buttons.action callback
RegisterNUICallback('action1', function(data, cb)
    -- Your action code...

    cb('ok')
end)

Introducci贸n (ES)

Un nuevo men煤 de acceso r谩pido, dise帽ado para facilitar tu experiencia de juego. Olv铆dese del alboroto: con solo unos pocos clics, personalice el logotipo, las im谩genes y los colores para que coincidan con el ambiente de su servidor. Porque sabemos que cada detalle importa y queremos que te sientas como en casa.

Ejemplo de uso

config.lua
-- Cambia la tecla predeterminada para abrir el men煤
-- (El usuario puede cambiarlo en la configuraci贸n de su juego)
Config.OpenKeyMenu = 'q'

-- Aqu铆 puedes elegir los colores del men煤
Config.Colors = {
    -- Color de fondo
    background = '#292929f1',
    -- Color cuando el rat贸n pasa por encima
    hover = '#0084f0d2'
}

-- Aqu铆 puedes cambiar el logo central del men煤
Config.LogoIMG = 'logo.png'
config.lua
Config.Buttons = {
    -- action = nombre para el RegisterNUICallback
    {
        img = 'hat.png', -- Cambia la imagen del bot贸n
        action = 'action1' -- Cambia el nombre del NUICallback
    },
    {
        img = 'hair-cut.png',
        action = 'action2'
    },
    ...
}
client/actions.lua
-- Registra el Config.Buttons.action callback
RegisterNUICallback('action1', function(data, cb)
    -- El c贸digo que quieres que realice tu acci贸n...

    cb('ok')
end)