Skip to content

GetResourceByFindIndex ​

клиент + сервер GET_RESOURCE_BY_FIND_INDEX

c
char* GET_RESOURCE_BY_FIND_INDEX(int findIndex);

Параметры ​

  • findIndex: The index of the resource (starting at 0)

Возвращает ​

The resource name as a string

Примеры ​

lua
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))

Страница собрана автоматически из native-decls/GetResourceByFindIndex.md. Нашли ошибку — поправьте исходный файл.

Независимый проект на базе Cfx.re. Не связан с Rockstar Games и Take-Two Interactive.