ESX :
QBCore:
vehicle.lua (100.2 KB)
| Code is accessible | Yes |
| Subscription-based | No |
| Lines (approximately) | 280 |
| Requirements | All Framework |
| Support | Yes |

ESX :
QBCore:
vehicle.lua (100.2 KB)
| Code is accessible | Yes |
| Subscription-based | No |
| Lines (approximately) | 280 |
| Requirements | All Framework |
| Support | Yes |

I had forgotten 3 vehicles, I just added them ![]()
top. thank you
For qb-core vehicles.lua to SQL use the following snippet and do insertvehicle from server console
RegisterCommand('insertvehicles', function(source, args) -- only allowed to console.
if source == 0 then
Citizen.CreateThread(function()
MySQL.ready(function()
MySQL.Async.execute('DELETE FROM vehicles', {}, function(rowsChanged)
print(rowsChanged)
if rowsChanged then
for k, v in pairs(QBCore.Shared.Vehicles) do
MySQL.insert('INSERT INTO vehicles (name, model, price, category) VALUES (:name, :model, :price, :category)', {
name = v.name,
model = v.model,
price = v.price,
category = v.category,
})
end
end
end)
end)
end)
end
end)
No need, it’s to be done directly in vehicle.lua for QBCore. I will make a version for QBCore
Hello, I made you the lines for the new vehicles for people who are under QBCore.
Be careful you have to change your GameBuild to 2699
Peace ![]()