[Release] esx_menu_default edited to looks like gtaonline


#41

@Jonathanfletcher

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


#42

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


#43

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


#44

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'
}


#45

i fixed it…


#46

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;
}


#47

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


#48

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


#49

Did you ever get them moved?


#50

Only to the centered left side :smiley:


#51

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


#52

#53

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


#54

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