mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 09:48:52 +00:00
Update functions.lua
This commit is contained in:
@@ -1365,7 +1365,7 @@ local mismatchedTypes = {
|
||||
---@return string
|
||||
function ESX.GetVehicleType(model)
|
||||
model = type(model) == 'string' and joaat(model) or model
|
||||
if not IsModelAVehicle(model) then return end
|
||||
if not IsModelInCdimage(model) then return end
|
||||
if mismatchedTypes[model] then
|
||||
return mismatchedTypes[model]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user