You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added a part for missing cars, it fixed some problems.
client > main.lua 402-417
-- Vehicles
serverNuiCallback('getAllVehicles', function(data, cb)
local vehicles = {}
for i = 1, #data do
local vehicleData = VEHICLES[data[i].vehicle]
if vehicleData then
vehicles[#vehicles+1] = {
plate = data[i].plate,
model = vehicleData.model,
}
else
print("Warning: VEHICLES table is missing entry for model: " .. tostring(data[i].vehicle))
end
end
cb(vehicles)
end)
Besides, i am using jg-advancedgarages so there are job names in citizenid in player_vehicles so it creates some problems
Also that one, while searching a spesific vehicle
The text was updated successfully, but these errors were encountered:
I added a part for missing cars, it fixed some problems.
client > main.lua 402-417
-- Vehicles
serverNuiCallback('getAllVehicles', function(data, cb)
local vehicles = {}
for i = 1, #data do
local vehicleData = VEHICLES[data[i].vehicle]
end)
Besides, i am using jg-advancedgarages so there are job names in citizenid in player_vehicles so it creates some problems
Also that one, while searching a spesific vehicle
The text was updated successfully, but these errors were encountered: