Vehicle names not showing in esx_advancedgarage

replace your vehicle_names.lua with this

Citizen.CreateThread(function()
AddTextEntryByHash(‘0xAFF0CB88’, “My car”)
end)

let me know what happens

still NULL

have you tried clearing the cache?

not yet, i will do now

nothing changed

is the server live or locally hosted i could take a look if your down for that?

home-hosted :stuck_out_tongue: tomorrow VPS

it is portforwarded

Continuing the discussion from Vehicle names not showing in esx_advancedgarage:

Citizen.CreateThread(function()
AddTextEntry(‘0x83B850BB’, ‘rijauto’)
AddTextEntry(‘0x1D630B2C’, ‘amarok’)
AddTextEntry(‘0x6C1EE972’, ‘rs7’)
AddTextEntry(‘0xAFF0CB88’, ‘demonhawk’)
AddTextEntry(‘0x1E8621C1’, ‘corsa09’)

end)

1 Like

were have i to put the vehicle_names.lua? in the esx_advancedgarage folder or into every car addon folder?

did you succeed?

esx_advancedgarage or in addon folder

(If addon folder)
__resource.lua

client_script{
‘vehicle_names.lua’
}

how can i add a car that in game i spawn it with this code (124abarth) because when i open the garage it says null

This fix it, but only some cars appear his name, there are other cars that still appear as null

1 Like

Try in client.lua change to VehicleName in getOutvehicle function

I got a new fix:

Add in your __resource.lua from your addon folder:

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

client_scripts {
    'vehicle_names.lua'
}

Then create a .lua file and name it: vehicle_names.lua
Add in vehicle_names.lua:

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

Citizen.CreateThread(function()
    AddTextEntry('amggt', 'Mercedes-Benz AMG')
    AddTextEntry('bclass', 'Mercedes-Benz B-Class')
end)

Now it will show: Mercedes-Benz AMG for the amggt!
Just copy/paste the AddTextEntry line, no comma needed!

4 Likes

for this part
function AddTextEntry(key, value)
Citizen.InvokeNative(GetHashKey(“ADD_TEXT_ENTRY”), key, value)

Do i need to change the “ADD_TEXT_ENTRY” to something else?

1 Like

No, just

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

Yeah, I figured out why it wasnt working. It appears this is for advancedgarage, and we have a version of eden (drp garage)

Can anyone pls help me? I tried different ideas but nothing works.