Skip to content

Instantly share code, notes, and snippets.

@Mkeefeus
Created December 28, 2022 23:10
Show Gist options
  • Save Mkeefeus/a75d2b323a3cc823191d2fa5e26ddd17 to your computer and use it in GitHub Desktop.
Save Mkeefeus/a75d2b323a3cc823191d2fa5e26ddd17 to your computer and use it in GitHub Desktop.
Get vehicles missing from vehicle list
RegisterCommand('models', function ()
local models = GetAllVehicleModels()
local missingVehicles = {}
for i = 1, #models do
if not VehicleList[models[i]] then
missingVehicles[#missingVehicles+1] = models[i]
end
end
lib.setClipboard(json.encode(missingVehicles))
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment