Skip to content

ZallaxDev/guille_contextmenu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

guille_contextmenu (IF YOU RENAME THE SCRIPT WILL NOT WORK) https://discord.gg/eBpmkW6e5j

Add in the cfg of your server -> ensure guille_contextmenu

How to implement it

You can insert the data in many ways, this is an example:

    local data = {}
    table.insert(data, {text = "Open", toDo = [[ExecuteCommand("me Hello everyone")]], icon = "fa-key"})
    table.insert(data, {text = "Close", toDo = [[TriggerEvent("esx_carlock:closecar", nearestcar)]]})
    table.insert(data, {text = "Delete", toDo = [[ExecuteCommand("car zentorno")]]})
    
    INSIDE [[]] THE CODE THAT THE BUTTON WIL EXECUTE
    

Use this event if you are using coords:

TriggerEvent("guille_cont:client:open", "Interaction menu" --[[Title of the menu]], data --[[Data of the script]], true, --[[Use coords = true, not using coords = false]] coords --[[The coords of the entity or place]])

If you are not using coords use this:

TriggerEvent("guille_cont:client:open", "Interaction menu" --[[Title of the menu]], data --[[Data of the script]], false, --[[Use coords = true, not using coords = false]])

You can set custom icons from https://fontawesome.com/v5.15/icons?d=gallery&p=1

PREVIEW

https://streamable.com/57ww5q

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • CSS 37.0%
  • Lua 32.0%
  • JavaScript 24.7%
  • HTML 6.3%