Tidy up of helpers, and use joaat() instead

This commit is contained in:
Jim Shield
2025-08-13 18:13:58 +01:00
parent 748e5e2201
commit 06ef5cb53b
3 changed files with 115 additions and 120 deletions

View File

@@ -212,7 +212,7 @@ elseif checkExists(Exports.OXCoreExport) then
cache.Vehicles = {}
for k, v in pairs(Ox.GetVehicleData()) do
cache.Vehicles[k] = {
model = k, hash = GetHashKey(k),
model = k, hash = joaat(k),
price = v.price,
name = v.name,
brand = v.make
@@ -225,7 +225,7 @@ elseif checkExists(Exports.ESXExport) then
for _, v in pairs(MySQL.query.await('SELECT model, price, name FROM vehicles')) do
cache.Vehicles[v.model] = {
model = v.model,
hash = GetHashKey(v.model),
hash = joaat(v.model),
price = v.price,
name = v.name,
}