Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Searching Vehicle #15

Open
BKBK7 opened this issue Aug 24, 2024 · 0 comments
Open

Searching Vehicle #15

BKBK7 opened this issue Aug 24, 2024 · 0 comments

Comments

@BKBK7
Copy link

BKBK7 commented Aug 24, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant