"Some" Vehicle names still showing NULL

Hey all, trying to get addon cars to show names and I have… “most” showing but some still show NULL and i’ve tried a lot of things but still not having any luck… any tips or help greatly appreciated.

function AddTextEntry(key, value)
	Citizen.InvokeNative(GetHashKey("ADD_TEXT_ENTRY"), key, value)
end
Citizen.CreateThread(function()
AddTextEntryByHash(GetHashKey("nissantitan17"), "Titan")
AddTextEntry("0x48CEC388", "Titan")
AddTextEntryByHash("1221510024", "Titan")
end)

Vehicle meta:

                        <modelName>nissantitan17</modelName>
			<txdName>nissantitan17</txdName>
			<handlingId>nissantitan17</handlingId>
			<gameName>nissantitan17</gameName>

But others work like these work fine:

--Trailer
AddTextEntry('cotrailer', 'Truck Trailer')
--2016 Challenger Hellcat
AddTextEntry("CHALLENGER", "ChallengerHellcat")

Why are you invoking a native that already exists? This is unnecessary and based on very old tutorials.

Then likely because you’re putting the wrong name. Use the gameName.

AddTextEntry("nissantitan17", "Titan")

Make sure GameName is under 11 characters otherwise the vehicle will display as NULL in store.
You can set gamename to what you want

So
“ANY NAME UNDER 11 CHARACTERS HERE”

Then make sure you have a file vehicle_names.lua in the resource folder with the following contents:

Citizen.CreateThread(function()
AddTextEntry(‘GAMENAME HERE’, ‘CUSTOM INGAME NAME HERE’)
end)

Add the following into the fxmanifest.lua:

client_scripts {
‘vehicle_names.lua’
}

If you do not have a manifest.fx create one:

fx_version ‘adamant’

game ‘gta5’

client_scripts {
‘vehicle_names.lua’
}

2 Likes