zf-labo / zf_dialog

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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", 
        rows = {
            {
                id = 0, 
                txt = "Citizen ID (#)"
            },
            {
                id = 1, 
                txt = "Bill Price ($)"
            },
        }
    })
    
    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

About

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


Languages

Language:JavaScript 34.8%Language:CSS 30.0%Language:Lua 25.4%Language:HTML 9.8%