Skip to content

grew-development/zf_dialog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZF Dialog | NoPixel Inspired Dialog Menu

Simple and Easy to use Dialog Menu (Good replacement for ESX Menu Dialog)

Information

I really loved the NeroHiro Keyboard that he made so I've ended up re-creating a dialog menu like he had made because he unfortunately stop support it.. Hope you enjoy this "re-creation" of the nh-keyboard with a new design that is more Luxurious version of it.

ShowCase ShowCase ShowCase

Installation

To Install the ZF Dialog Menu, you need to down it Here. After you've downloaded the zf_dialog, install it in '[resource]/[local]/zf_dialog'. Don't forget to start the resource in your server.cfg with ensure zf_dialog

Usage

This is a default menu to show you how it works. This is only for exemple.

RegisterCommand('testdialog', function()
    local dialog = exports['zf_dialog']:DialogInput({
        header = "Tuner Billing",
        submit = 'Example S', (optional)
        cancel = 'Example C', (optional)
        rows = {
            {
                id = 0, 
                txt = "Citizen ID (#)"
                content = 'Content Input', (optional)
            },
            {
                id = 1, 
                txt = "Bill Price ($)"
                content = 'Content Input', (optional)
            },
        }
    })
    
    if dialog ~= nil then
        if dialog[1].input == nil or dialog[2].input == nil then
            ESX.ShowNotification('Veuillez remplir les champs.')
        else
            ESX.ShowNotification('Citizen ID: ' .. dialog[1].input .. ' Price: ' .. dialog[2].input)
        end
    end
end, false)

Support

If you find an error or have a suggestion, please feel free to help us by creating an issue on the github! Issues