Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Latest commit

 

History

History
51 lines (41 loc) · 1.71 KB

README.md

File metadata and controls

51 lines (41 loc) · 1.71 KB

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 download the code. 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

No more support, this is an archive