Installation
curl https://github.com/Azerothwav/Az_context
Informations
An optimized and totally open source context menu for your FiveM server.
The az_context is the first open source context menu realized without HTML. Using the drawText, drawSprite and drawRectangle that GTA allows us to generate.
The contextual menu allows you to generate up to 4 fillable fields. See the documentation to learn how to use it.
The resource is completely standalone.
Exemple
Code view
-- Show context menu and stock data in the variable
local contextData = exports["az_context"]:ShowContextMenu({
title = 'Job setting',
field = 1,
field1 = 'Job name :',
field2 = 'Job name :'
})
-- Print the data
print(contextData[1].text, contextData[2].text)