BubbleDK / bub-mdt

bub-mdt is a FiveM Mobile Data Terminal resource, written in TypeScript and React.
GNU General Public License v3.0
84 stars 43 forks source link

Searching Vehicle #15

Open BKBK7 opened 3 weeks ago

BKBK7 commented 3 weeks ago

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 image image