RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. GET_RESOURCE_BY_FIND_INDEX

GET_RESOURCE_BY_FIND_INDEX

CFX

Signature

lua
GetResourceByFindIndex(0)
-- returns char*

Parameters

NameTypeDescription
intThe 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

On this page

  • Signature
  • Parameters
  • Usage
  • Details