vMenu

Make sure the script actually runs, and have it inside a Citizen.CreateThread

Yes, script runs:

Citizen.CreateThread(function()
	AddTextEntry('rx7', 'Mazda RX7 Veilside')
	AddTextEntry('r8', 'Audi R8')
end)

Then rx7 is not the spawn name…

rx7 is the

gameName

Can you show your vehicles.meta section where the different types of names are (handling, game name etc) just that section.

<modelName>rx7veilside</modelName>
      <txdName>rx7veilside</txdName>
      <handlingId>RX7VEILSIDE</handlingId>
      <gameName>rx7</gameName>
      <vehicleMakeName>MAZDA</vehicleMakeName>

Try setting the gamename to rx7veilside, and in your other script use rx7veilside instead of rx7.
Also make sure in the addons.json you use rx7veilside, not rx7 in case you were using rx7.

@Vespura no, doesnt work. In the vehicle spawner it says “rx7veilside” now.
This is my __resource.lua file, is something wrong with it:

resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'

server_scripts {
   'script.lua',
}

client_scripts {
   'script.lua',
}

Why are you adding the script to the server and client?
It’s only a client script.

does that mess it up?

Yes, most likely

ok… so ill remove the server_script and test it again

no, it did not work.

Then idk what you’re doing wrong.

You need to add the vehicles.meta to it so it would look like this:

resource_manifest_version '77731fab-63ca-442c-a67b-abc70f28dfa5'


files {
	'data/vehicles.meta',
}

data_file 'VEHICLE_METADATA_FILE' 'data/vehicles.meta'

I assumed he had already done that for the vehicle (resource) he streamed… otherwise the vehicle probably doesn’t work at all considering it’s an addon

Can i change the keybind from M to f1, sorry if this has been answered, i have searched the topic etc, might not have done enough searching(sorry if it has been done)

@Wack put following above the

start vMenu

in the server.cfg file:

set vMenuToggleMenuKey 288

@Crunchy_Cookies so i have to copy the vehicles.meta into the script folder for the names?

Sure, just to name a few instances:

Change key requests

docs.vespura.com/vmenu/configuration will show you how it’s done, like mentioned literally everywhere by now.

no you don’t.

basically the simplest way of doing this is probably like this:

  • [vehicle resource folder]
    • __resource.lua (containing a resource manifest version, a reference to the client script, and a reference to all .meta files)
    • vehicle model/texture files (ytd/yft files)
    • carvariations.meta, handling.meta, vehicles.meta for the addon vehicle.
    • client_names.lua (which contains the vehicle names code snippet mentioned some posts above)