Merge branch 'main' into main

This commit is contained in:
Nick Reagan
2025-01-29 20:04:47 -05:00
committed by GitHub
15 changed files with 510 additions and 107 deletions
+8
View File
@@ -68,6 +68,14 @@ function QBShared.ChangeVehicleExtra(vehicle, extra, enable)
end
end
function QBShared.IsFunction(value)
if type(value) == 'table' then
return value.__cfx_functionReference ~= nil and type(value.__cfx_functionReference) == "string"
end
return type(value) == 'function'
end
function QBShared.SetDefaultVehicleExtras(vehicle, config)
-- Clear Extras
for i = 1, 20 do