This commit is contained in:
MrNewb committed 2025-04-23 16:11:43 -04:00
1 parent 89858c6d73
commit b41e214aed
1 file changed
+2 -2
+2 -2
View File
@@ -125,7 +125,7 @@ end
---@param model string | number
---@return boolean
Utility.LoadModel = function(model)
if type(model) ~= 'number' then model = GetHashKey(model) end -- Use GetHashKey instead of joaat for client
if type(model) ~= 'number' then model = joaat(model) end -- Use GetHashKey instead of joaat for client
if not IsModelValid(model) and not IsModelInCdimage(model) then return false end
RequestModel(model)
local count = 0
@@ -301,7 +301,7 @@ end
---@param model string | number
---@return number
Utility.GetEntityHashFromModel = function(model)
if type(model) ~= 'number' then model = GetHashKey(model) end -- Use GetHashKey instead of joaat for client
if type(model) ~= 'number' then model = joaat(model) end -- Use GetHashKey instead of joaat for client
return model
end