[RESOLVED] how to view html files out of game

nui

#1

Pardon my English!

I am Brazilian and I am creating a server based on LA LIFE.

I have [essential] installed and I want to modify the menu, however when I open .html nothing appears in my browser.

I would like to know if there is any way to emulate the nui to appear in the chrome and edit in real time.

PRINTS:





#2

You can either call the function that opens the menu through the console (f12) or you can edit the style sheet and change the display of the element you want to see, or edit the javascript file and change the elements’ display on window load.


#3

This would be the function, how to stay on the call?


#4

That’s a Lua file, that won’t change anything, you need to look in the javascript files.


#5

This is what I have of functions in js

function closeMain() {
$(".home").css(“display”, “none”);
}
function openMain() {
$(".home").css(“display”, “block”);
}
function openMain() {
$(".home").css(“display”, “block”);
}
function closeAll() {
$(".body").css(“display”, “none”);
}
function openBalance() {
$(".balance-container").css(“display”, “block”);
}
function openWithdraw() {
$(".withdraw-container").css(“display”, “block”);
}
function openDeposit() {
$(".deposit-container").css(“display”, “block”);
}
function openTransfer() {
$(".transfer-container").css(“display”, “block”);
}
function openContainer() {
$(".bank-container").css(“display”, “block”);
$("#cursor").css(“display”, “block”);
}
function closeContainer() {
$(".bank-container").css(“display”, “none”);
$("#cursor").css(“display”, “none”);
}


#6

Then press f12 to open the web browsers console and type openMain()


#7

This error appears


#8

Can not find jquery.js


#9

replace that line with <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>


#10

thank you!!! <3


#11

do it in javascript and chuck this in

function Discord(){
window.open(“link”,"_self")
}