Code Monkey home page Code Monkey logo

esx_menu_default's Introduction

ESX MENU DEFAULT GTA ONLINE STYLE

How to use :

source : https://github.com/ESX-Org/esx_menu_default little exemple:

ESX.UI.Menu.Open(

'default', GetCurrentResourceName(), 'shop',

{

css =  'superete',

title =  'Magasin',

elements = elements

},

function(data, menu)

TriggerServerEvent('esx_shop:buyItem', data.current.value, data.current.price)

end,

function(data, menu)

  

menu.close()

  

CurrentAction =  'shop_menu'

CurrentActionMsg =  _U('press_menu')

CurrentActionData = {zone = zone}

end

)

css = 'superete' matches with

    .menu .head_superete{

font-family: SignPainter;

font-size: 59px;

  

background-image: url("../img/header/247.png");

text-align : center;

height : 90px;

line-height : 105px;

color : white;

font-style: oblique;

}

and it looks like this Menu esx_shops (not perfect)

everything is possible : Menu Exemple Exemple Exemple

To edit some header there is the template.psd but there is a lot of header in img folder

esx_menu_default's People

Contributors

parow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

esx_menu_default's Issues

Need help

Where do i put this?

css = 'superete' matches with

    .menu .head_superete{

font-family: SignPainter;

font-size: 59px;

  

background-image: url("../img/header/247.png");

text-align : center;

height : 90px;

line-height : 105px;

color : white;

font-style: oblique;

}

no action when selecting item

Hello,
after pressing the E key and selecting item and quantity with right arrow to buy from shop when you press enter nothing happens.
Is there another key you must press to buy items or is this a problem ?

can you help me??

how to install I didn't understand where to put the code

ESX.UI.Menu.Open(

'default', GetCurrentResourceName(), 'shop',

{

css = 'superete',

title = 'Magasin',

elements = elements

},

function(data, menu)

TriggerServerEvent('esx_shop:buyItem', data.current.value, data.current.price)

end,

function(data, menu)

menu.close()

CurrentAction = 'shop_menu'

CurrentActionMsg = _U('press_menu')

CurrentActionData = {zone = zone}

end

)
css = 'superete' matches with

.menu .head_superete{

font-family: SignPainter;

font-size: 59px;

background-image: url("../img/header/247.png");

text-align : center;

height : 90px;

line-height : 105px;

color : white;

font-style: oblique;

}

adding more

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

(I did the ems one too but thought better to post just one)

the resource.lua

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

and all the corresponding client.lua (along ALL the menu parts)

(the ones i used vehicle and cloakroom for work just the ones I've added)

	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.

Also noticed my mecano and impound do not work. I have made sure they were in the app.css too

Any help would be amazing. Thanks in advance 😄

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.