Skip to content

GetInteriorPortalEntityCount ​

клиент GET_INTERIOR_PORTAL_ENTITY_COUNT

c
int GET_INTERIOR_PORTAL_ENTITY_COUNT(int interiorId, int portalIndex);

Примеры ​

lua
local playerPed = PlayerPedId()
local interiorId = GetInteriorFromEntity(playerPed)
local portalIndex = 0

if interiorId ~= 0 then
  local count = GetInteriorPortalEntityCount(interiorId, portalIndex)
  print("portal " .. portalIndex .." entity count is: " .. count)
end

Параметры ​

  • interiorId: The target interior.
  • portalIndex: Interior portal index.

Возвращает ​

Portal entity count.


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

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