Hello, i have a problem.
I search try to make a menu html/css/js
I use the keypress function to listen to the keys but it does not work. Is there something specific to do?
Example for navigate to the menu:
http://jsfiddle.net/QFzCY/
Its dont work in gta UI
Thanks all
Make sure you are calling SetNuiFocus(true) when you open the menu.
My problem is not in the lua.
Its in JQUERY.
You think I have to call the function to interact with jquery?
Yes, you need to call SetNuiFocus(true).
I have a solution thank you but it is not under lua “SetNuiFocus(true)” has nothing to see but thanks to you
Share your soultion then.
My menu is on html but it is fed by javascript and listen by lua.
The menu will be in my baseMods.
Presentation
baseMods Is a mode that allows to have a basis for all your new mods
Current Features:
interface UI html/css/js for role play
Switch the role play menu when going to the gta menu
Give or remove money
Interactive thirst system
Centralization of the texts of its mods, easier to translate a whole mod (html/languages.js)
Parameter setting system (client/base.lua)
Download:
https://github.com/Esquimen/fiveM_baseMods
[image]
Installation:
Do not use any other base mode (ex: Essent…