Advanced garage "null" car names

Hi guys… i have add on cars on my server and works perfectly, but when u want take them out of garage i see the plate number and “null” name…

I think i need add vehicles_names.lua on esx_advancedgarage yes? but i dont know what i need put in to a file…
Thanks all…

Pd. With some cars add on I have a problem and that is to take them to the mechanic and try to raise the engine, turbo, etc … I install it, I take the money but does not stay as “installed” but if it seems that it has applied, even though visually not because it lets me keep paying the same thing over and over again

2 Likes

UP!

same problem

1 Like

same problem

1 Like

you need to generate hash keys based off the model name in the vehicles.meta using Openiv and then put the hash key in the vehicle_names.lua file

Can you give your vehicles_names.lua like a line or the file?

how to get hash keys in OpenIV? i didn’t find it

You don’t need hashes.
You can do that with ‘gamename’ of vehicles.meta too

Create a script with name like

veh_label
create __resource.lua inside the folder
inside the __resource.lua paste that

resource_manifest_version ‘77731fab-63ca-442c-a67b-abc70f28dfa5’
client_script {
‘veh_label.lua’
}

then create a lua file veh_label.lua

and paste this into the veh_label.lua

local Vehicles = {
{label = ‘Alfa Romeo 4C’, spawnName = ‘4c’},
{label = ‘Alfa Romeo 939’, spawnName = ‘939’},
–Example
{label = ‘The Name You Want To See’, spawnName = ‘THE_VEHICLE_SPAWN_NAME’},
}

Citizen.CreateThread(function()
for num,vehicle in ipairs(Vehicles) do
AddTextEntryByHash(GetHashKey(vehicle.spawnName), vehicle.label)
end
end)

start veh_label into your server.cfg and youre done

6 Likes

does not work veh_label
could’n load resource

could you kindly tell me the exact procedure?

1 Like

Create a vehicle_names.lua file and put this into it, remember to add that on __resource.lua file.

Citizen.CreateThread(function()
	AddTextEntry('ingamename', 'nametodisplay')
end)
11 Likes

thank you ! it works

@xMitrill what do you mean with INGAMENAME you will that i put so
example
AddTextEntry(‘ingamename’, ‘nametodisplay’)
AddTextEntry(‘spawnname??? or the name in the vehivle shop??’, ‘example1’)
how

Check the vehicles.meta, there is . Usually it’s same as the spawn name, but sometimes no, you have to set it as the spawn name or just change vehicle_names.lua with that

do u solve it ? can you guide us please ?

I have the problem too … can everyone write a guide?

  1. create a folder named vehicles_names
  2. create a client.lua
  3. create a resources.lua
    4 . add the client.lua in your client script
  4. add in client.lua

:
Citizen.CreateThread(function()
AddTextEntry(‘GAMENAME/CARENAMEHANDLING/VEHICLES META’, ‘NAME OF YOUR CAR THAT YOU WILL BE DISPLAY’)


EXAMPLE:

function AddTextEntry(key, value)
Citizen.InvokeNative(GetHashKey(“ADD_TEXT_ENTRY”), key, value)
end

Citizen.CreateThread(function()


AddTextEntry(‘lp700’, ‘Lamborghini Performante LP700’)

AddTextEntry(‘LWGTR’, ‘Nissan GTR Nismo R35 LW’)
AddTextEntry(‘stelvio’, ‘Alfa Romeo Stelvio’)
AddTextEntry(‘A6 Avant’, ‘Audi A6 Avant’)
AddTextEntry(‘a6tfsi’, ‘Audi A6 TFSI’)
AddTextEntry(‘a8audi’, ‘Audi A8 TFSI’)
AddTextEntry(‘rs6’, ‘Audi RS6’)
– AddTextEntry(’’, ‘’) // VORLAGE OHNE ( // KOPIEREN DANKE <3 )
end)

when you cant under stand this pm me :slight_smile:

1 Like

is work bro thx

This Is Work Bro

1 Like

@Capitan_KaraTV I need your help! I cant understand a thing

1 Like