Code Monkey home page Code Monkey logo

zf_context's Introduction

Lua VS Code Discord

ZF Context | NoPixel Inspired Context Menu

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

Information

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

ShowCase ShowCase ShowCase

Installation

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

Usage

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

RegisterCommand('testcontext', function()
    local myMenu = {
        {
            id = 1,
            header = 'Header Title',
            txt = ''
        },
        {
            id = 2,
            header = 'Button',
            txt = 'Click here for help'
            params = {
                event = 'takemymoney',
                isServer = true,
                args = {
                    amount = 500
                }
            }
        }
    }
    exports['zf_context']:openMenu(myMenu)

    RegisterNetEvent('takemymoney')
    AddEventHandler('takemymoney', function(data)
        print('You have took ' .. data.amount .. '$ from me... 😭')
    end)
end, false)

Item Options

{
    id = <integer> (need to be unique per menu),
    header = <string>,
    text = <string>,
    params = <array> {
        event = <string> '',
        isServer = <boolean> (optional),
        args = <array> {
            your = 'variable',
            you = 'can',
            put = 'multiple'
        }
    }
}

Support

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

zf_context's People

Contributors

arcadiusmachine avatar zf-development avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.