Skip to content

GetInteriorRoomCount ​

клиент GET_INTERIOR_ROOM_COUNT

c
int GET_INTERIOR_ROOM_COUNT(int interiorId);

Примеры ​

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

if interiorId ~= 0 then
  local count = GetInteriorRoomCount(interiorId)
  print("interior " .. interiorId .. "has " .. count .. " rooms")
end

Параметры ​

  • interiorId: The target interior.

Возвращает ​

The amount of rooms in interior.


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

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