GET_RESOURCE_BY_FIND_INDEX
CFX
Signature
lua
GetResourceByFindIndex(0)
-- returns char*Parameters
| Name | Type | Description |
|---|---|---|
| int | The index of the resource (starting at 0) |
Usage
Named call
GetResourceByFindIndex(0)InvokeNative
Citizen.InvokeNative(0x387246B7, 0)lua 1
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))Details
- Hash
- API set
- Source
- cfx
Source: cfx
