[Release] esx_menu_default edited to looks like gtaonline

@Jonathanfletcher

It works well, you just have to copy and the script tries to lessen, but it’s really easy

i did try what i’ve mention the previous message and doesn’t work…

I’ve set it in the css.app from the menu default and added the css into the client.lua from the policejob i dunno why it doesnt work

check your resource.lua on the esx_menu_default did you add the police image to load i believe that must be done

__resource.lua
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'

description 'ESX Menu Default'

version '1.0.2'

client_scripts {
	'client/main.lua'
}

ui_page {
	'html/ui.html'
}

files {
	'html/ui.html',
	'html/css/app.css',
	'html/js/mustache.min.js',
	'html/js/app.js',
	'html/fonts/pdown.ttf',
	'html/fonts/bankgothic.ttf',
    'html/fonts/v.ttf',
	'html/img/cursor.png',
	'html/img/keys/enter.png',
	'html/img/keys/return.png',
	'html/img/header/247.png',
	'html/img/header/tatoo.png',
	'html/img/header/Inventaire.jpg',
	'html/img/header/Accessoires.png',
	'html/img/header/actions_metier.jpg',
	'html/img/header/ammunation.jpg',
	'html/img/header/animations.jpg',
	'html/img/header/armesillegales.jpg',
	'html/img/header/autoecole.jpg',
	'html/img/header/changer.png',
	'html/img/header/Concessionnaire.jpg',
	'html/img/header/Entreprise.png',
	'html/img/header/factures.jpg',
	'html/img/header/fourriere.jpg',
	'html/img/header/garage.jpg',
	'html/img/header/gestionpatron.png',
	'html/img/header/gpsrapide.jpg',
	'html/img/header/identite.png',
	'html/img/header/lscus.png',
	'html/img/header/masque.jpg',
	'html/img/header/Me_concernant.jpg',
	'html/img/header/mecano.png',
	'html/img/header/menu.jpg',
	'html/img/header/moderation.jpg',
	'html/img/header/poleemploi.png',
	'html/img/header/Quincaillerie.jpg',
	'html/img/header/skin_menu.png',
	'html/img/header/suburban.png',
	'html/img/header/universite.jpg',
	'html/img/header/valider.png',
	'html/img/header/vehicle.png',
	'html/img/header/vestiaire.jpg'

}

dependencies {
	'es_extended'
}

i fixed it…

you must add this in app
because it doesn’t exist

.menu .head_fourriere {
font-family: SignPainter;
font-size: 59px;

background-image: url("…/img/header/fourriere.jpg");
text-align : center;
height : 90px;
line-height : 105px;
color : white;
font-style: oblique;
}

I feel incredibly dumb, but can’t put certain menus to the right side and centered… Could someone help me with this? -.-

Im in the same boat as you. I’ve added to the app.css

.menu .head_police {
font-family: SignPainter;
font-size: 59px;

background-image: url("…/img/header/police.jpg");
text-align : center;
height : 90px;
line-height : 105px;
color : white;
font-style: oblique;
}

the resource.lua

	'html/img/header/police.jpg',
	'html/img/header/EMS.jpg',

and all the corresponding client.lua

	ESX.UI.Menu.Open(
	'default', GetCurrentResourceName(), 'police_actions',
	{
		css = 'police',
		title    = 'Police',
		align    = 'bottom-right',

from each one, shops works, ammunation works etc.

I cant get my police added and my ems added, nor the impound want to show up.

also, I cant figure out which option will move all of the menus to the bottom right. I have tried changing some values where I thought it would be but to no avail.

Any help would be amazing. Thanks in advance :smile:


Also I edited most of the pics into english I can upload if people need them :slight_smile:

Edit.

I’ve got a temporary fix, I just named the police to one that was already added like ‘Concessionnaire.jpg’ and that’s worked fine for now

Did you ever get them moved?

Only to the centered left side :smiley:

Where did you change dude? I am trying to get it to the bottom right

I got all that but i cant figure out how to move it all. every single client/main.lua points to bottom-right, but the menu only sits top left like this example pic

before adding this all my menus were on the bottom-right, its just put itself back at top-left. thought it might be in the resource itself

cant seam to get this to work. my menus just show up black with no headers… i put this in place of a stock esx_menu_default folder then in clotheshop i went in and edited the main.lua in each spot it said ESX.UI.Menu.Open above title = and didnt forget the , so example it looks like

ESX.UI.Menu.Open(
‘default’, GetCurrentResourceName(), ‘shop_confirm’,
{
css = ‘suburban’,
title = _U(‘valid_this_purchase’),
align = ‘top-left’,
elements = {
{label = _U(‘yes’), value = ‘yes’},
{label = _U(‘no’), value = ‘no’},

what have i done wrong here?? Thx

edit : just wanted to add the menu when open has just a label at top of skin

Fixed my problem. I see what I was doing wrong. I was using the image name I see of the head_ from the app css. Working great now

How do I move it to the bottom right for everything like lscustoms, inventory, f6 menu, shops etc

You would do that in the esx_mecanojob/client/main
any line that has top-left make it bottom-right

Yeah I have it set to that it’s been that for a long time and it worked before installing this but it’s not in bottom right anymore

it is working fine for me the way I said