vMenu

do use "", AddTextEntry is meant for strings, 0x12345678 is for compatibility with OpenIV .oxt files

just call AddTextEntry("16challenger", "Dodge '16 Challenger")

3 Likes

Thanks for all the help so it now works like i charm.


Now i just need to do it to all other one haha :stuck_out_tongue:


So i was struggling at first to make it work. I now got it to work but this method and a bit picky to be honnest but once you know how it works. It’s really easy.

So for those who are having a hard time.

Here my vehicle_names.lua. so you can compare. Make sure you call it in your __resource.lua
client_script ‘vehicle_names.lua’

function AddTextEntry(key, value)
	Citizen.InvokeNative(GetHashKey("ADD_TEXT_ENTRY"), key, value)
end
Citizen.CreateThread(function()
-- 2011 Ford Crown Victoria
AddTextEntry('FCV', '2011 Ford Crown Victoria')
-- 2016 Dodge Challenger Hellcat
AddTextEntry('CHALLENGER', '2016 Dodge Challenger Hellcat')
-- 2018 BMW 440i xDrive
AddTextEntry('440m', '2018 BMW 440i xDrive')
-- 1969 Dodge Charger R/T
AddTextEntry('69CHARGER', '1969 Dodge Charger R/T')
-- 2018 Lamborghini Aventador S
AddTextEntry('aventadors', '2018 Lamborghini Aventador S')
-- 2018 BMW M5 F90
AddTextEntry('m5f90', '2018 BMW M5 F90')
-- 2018 Dodge Challenger SRT Demon
AddTextEntry('hellcat', '2018 Dodge Challenger SRT Demon')
-- 2005 BMW X5 E53 Sport
AddTextEntry('X5E53', '2005 BMW X5 E53 Sport')
-- Dodge Mega Ram 3500
AddTextEntry('MEGARAM', 'Dodge Mega Ram 3500')
-- Toyota Supra
AddTextEntry('SUPRA2', 'Toyota Supra')
-- 2020 Tesla Roadster
AddTextEntry('ROADSTER', '2020 Tesla Roadster')
-- 2015 BMW M3 (F80)
AddTextEntry('M3F80', '2015 BMW M3 (F80)')
-- 2017 Bentley Bentayga StarTech
AddTextEntry('BENTAYGAST', '2017 Bentley Bentayga StarTech')
-- 2016 Toyota Camry
AddTextEntry('camry55', '2016 Toyota Camry')
-- 2008 Volkswagen Touareg R50
AddTextEntry('R50', '2008 Volkswagen Touareg R50')
-- 2017 Audi R8 V10 Plus
AddTextEntry('R8V10', '2017 Audi R8 V10 Plus')
-- 2018 Audi rs3 Sportback
AddTextEntry('rs318', '2018 Audi rs3 Sportback')
-- 2011 Audi RS5
AddTextEntry('Rs5', '2011 Audi RS5')
-- 2016 Audi SQ7
AddTextEntry('SQ72016', '2016 Audi SQ7')
-- BMW M3 e92
AddTextEntry('m3e92', 'BMW M3 e92')
-- 2008 Chrysler 300c SRT8
AddTextEntry('chry300', '2008 Chrysler 300c SRT8')
-- 2017 Chevrolet Camaro ZL1
AddTextEntry('CCZL', '2017 Chevrolet Camaro ZL1')
-- 2016 Dodge Charger Hellcat
AddTextEntry('CHARGER', '2016 Dodge Charger Hellcat')
-- Chevrolet Tahoe
AddTextEntry('TAHOE1', 'Chevrolet Tahoe')
-- 1970 Pontiac Firebird
AddTextEntry('Firebird', '1970 Pontiac Firebird')
-- 2003 Mitsubishi Eclipse Spyder GTS
AddTextEntry('Eclipse', '2003 Mitsubishi Eclipse Spyder GTS')
-- 2006 Mitsubishi Lancer Evolution IX
AddTextEntry('Lancer', '2006 Mitsubishi Lancer Evolution IX')
-- 1995 Toyota Supra MK IV
AddTextEntry('Supra', '1995 Toyota Supra MK IV')
-- 2009 Subaru Impreza WRX STi GH
AddTextEntry('Impreza', '2009 Subaru Impreza WRX STi GH')
-- 1994 Toyota Supra MK IV
AddTextEntry('Supra3', '1994 Toyota Supra MK IV')
-- 2002 Mitsubishi Lancer Evolution VII
AddTextEntry('Lancer2', '2002 Mitsubishi Lancer Evolution VII')
-- 2002 Nissan Skyline GT-R R34
AddTextEntry('Skyline', '2002 Nissan Skyline GT-R R34')
-- 1999 Nissan Skyline GT-R 34
AddTextEntry('Skyline2', '1999 Nissan Skyline GT-R 34')
-- 1997 Mazda RX-7
AddTextEntry('RX7', '1997 Mazda RX-7')
-- 1995 Mitsubishi Eclipse
AddTextEntry('Eclipse2', '1995 Mitsubishi Eclipse')

end)



So instead of using " i used ’ and works 100%

Then in your vehicle.meta make sure that in the Lancer that there is no space otherwise it will break and not work. Also make sure that game name is not use by another car. You may use any gamename you want.

Are there logs implemented for the admin commands?

Nope no logs. You could turn on debugging mode on client/server but I wouldn’t recommend it on the client as it just adds more annoying things to the client display.

1 Like

so im making sub menus for Emergency sense we use Addons, and I was wondering is it possible to make a sub menu in a sub menu so like go into Emergency then it says

SAHP

BCSO

LSPD

LSFD

and each department can have permissions for access.

possibly an update in the future to bring in logs? :o

Yes you can have multiple submenus. However you’ll have to figure it out yourself. I’m not going to support modifying this resource. Anything you want to add you can either suggest it or try to make it yourself. And making it yourself, really means making it yourself, so no support.

What kind of logging do you want exactly?

1 Like

how do you unban somebody?

i got the sub menu working with permissions but on the menu it shows NULL.

ill try to figure it out otherwise i wont learn <3

tried everything i can think of and it still says NULL in menu even though im am getting the class in vehicles.cs

[MainMenu.Cf.GetLocalizedName("VEH_CLASS_22")] = Sheriff,

Will you eventually update the ped spawn names? I see it’s a “maybe” in your update section.

The maybe is because I’m already using the real names, instead of the other random ped names.

This menu does not have any ban features whatsoever, so there’s no way to ban / unban someone.

1 Like

How would I disable Power and Torque Multiplier from the menu or to only allow admins to use it?

Just like any other feature, using permissions.

2 Likes

Any idea why its saying no such config file? i followed everything perfectly and thats the only thing that i see out of place

Did you place your permissions.cfg file in the same folder as your server.cfg file?

1 Like

how do you disable the Dynamic weather changes perm?

If only people would read the instructions…

2 Likes

sorry, just didnt understand the notes, i thought it just disabled the option to disable the dynamic weather

Nope and that could have been why