Five M vehicle names in garage

Hey Guys,

I’m just working on a server and wanted to get my car out of the garage. But everycar is just called “none” in Garage. Why? How can I fix it?

Do you have any errors in your client or server console?

Yes. The Error is in the console whenever I to park my car in the garage.

Link because the picture is very small:
https://i.imgur.com/PErGj98.png

Are the nulls addon vehicles you added or default GTA 5 vehicles?

Addon

I think for addon vehicles to not show as null you need a names.lua file for them I use this for that GXT2 to names.lua

Thanks.

Worked for me!

No problem

  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

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.