Skip to content

GetInteriorPosition ​

клиент GET_INTERIOR_POSITION

c
void GET_INTERIOR_POSITION(int interiorId, float* posX, float* posY, float* posZ);

Примеры ​

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

if interiorId ~= 0 then
  local x, y, z = GetInteriorPosition(interiorId)
  print("current interior " .. interiorId .. " position is: " .. vec(x, y, z))
end

Параметры ​

  • interiorId: The target interior.

Возвращает ​

Interior position.


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

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