GetPedCollectionsCount
клиент GET_PED_COLLECTIONS_COUNT
c
int GET_PED_COLLECTIONS_COUNT(Ped ped);Returns number of variation collections available for the given Ped.
Collections are groups of drawable components or props available for the given Ped. Usually collection corresponds to a certain DLC or the base game. See SET_PED_COLLECTION_COMPONENT_VARIATION, SET_PED_COLLECTION_PROP_INDEX, GET_NUMBER_OF_PED_COLLECTION_DRAWABLE_VARIATIONS etc natives for more details on how to work with collections.
GET_PED_COLLECTIONS_COUNT can be used together with GET_PED_COLLECTION_NAME to list all collections attached to Ped.
Примеры
lua
local ped = PlayerPedId()
local count = GetPedCollectionsCount(ped)
for i = 0, count - 1 do
print(GetPedCollectionName(ped, i))
endПараметры
- ped: The target ped
Возвращает
Number of Ped variation collections. 0 if Ped is not found.
Страница собрана автоматически из native-decls/GetPedCollectionsCount.md. Нашли ошибку — поправьте исходный файл.