fix: missing and invalid types and parameters

This commit is contained in:
Linden
2023-02-25 18:20:14 +11:00
parent b779ea7c3b
commit b3b49b1cbd
6 changed files with 11 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
---@param coords vector3 The coords to check from.
---@param maxDistance number The max distance to check.
---@param includePlayer boolean Whether or not to include the current player.
---@param includePlayer boolean? Whether or not to include the current player.
---@return table players
function lib.getNearbyPlayers(coords, maxDistance, includePlayer)
local players = GetActivePlayers()

View File

@@ -9,7 +9,7 @@ function lib.requestStreamedTextureDict(textureDict, timeout)
error(("expected textureDict to have type 'string' (received %s)"):format(type(textureDict)))
end
RequestStreamedTextureDict(textureDict)
RequestStreamedTextureDict(textureDict, false)
if coroutine.running() then
timeout = tonumber(timeout) or 500