Skip to content

GetInteriorPortalRoomFrom ​

клиент GET_INTERIOR_PORTAL_ROOM_FROM

c
int GET_INTERIOR_PORTAL_ROOM_FROM(int interiorId, int portalIndex);

Примеры ​

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

if interiorId ~= 0 then
  local roomIndex = 0

  local portalRoomFrom = GetInteriorPortalRoomFrom(interiorId, 0)
  print("portal " .. roomIndex .. " room FROM is: " .. portalRoomFrom)
end

Параметры ​

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

Возвращает ​

Portal's room FROM index.


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

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