Hello
First of all, you have to enter in the “fxmanifest.lua” file and add this line:
:
‘vehicle_names.lua’
Like this:
fx_version ‘bodacious’
game ‘gta5’
server_scripts {
‘@mysql-async/lib/MySQL.lua’,
‘@ es_extended / locale.lua’,
‘locales / pl.lua’,
‘locales / en.lua’,
‘config.lua’,
‘server / server.lua’
}
client_scripts {
‘@ es_extended / locale.lua’,
‘locales / pl.lua’,
‘locales / en.lua’,
‘config.lua’,
‘client / client.lua’,
‘vehicle_names.lua’ --here you have put this
}
Them you have to creat a file “lua” with the name:
“vehicle_names.lua”
Inside the file you can add cars like this:
Citizen.CreateThread (function ()
AddTextEntry (‘lambose’, ‘Lamborghini Setso’)
AddTextEntry (‘AKUMA’, ‘Akuma’)
AddTextEntry (‘amarok’, ‘Amarok’)
end)
It is very important to use the name and label that is used in the database, of which it does not work and as a result NULL.
I hope to help you