GetResourceByFindIndex
Docslocal retval = GetResourceByFindIndex(findIndex)Parameters
| Name | Type | Description |
|---|---|---|
findIndex | int | The index of the resource (starting at 0) |
Returns
char*Examples
Official
local resourceList = {}
for i = 0, GetNumResources(), 1 do
local resource_name = GetResourceByFindIndex(i)
if resource_name and GetResourceState(resource_name) == "started" then
table.insert(resourceList, resource_name)
end
end
print(table.unpack(resourceList))