InteriorClient

getInteriorFromPrimaryView

GET_INTERIOR_FROM_PRIMARY_VIEW0xE7D267EC6CA966C3

The GTA V native GET_INTERIOR_FROM_PRIMARY_VIEW of the INTERIOR namespace, as LS:MP client scripts call it: the global function getInteriorFromPrimaryView, in JavaScript and in Lua.

SignatureJavaScript
getInteriorFromPrimaryView(): Interior
SignatureLua
getInteriorFromPrimaryView(): Interior

Usage

JavaScript
const interior = getInteriorFromPrimaryView();
Lua
local interior = getInteriorFromPrimaryView()

Parameters

None.

Returns

Interior JavaScript number, Lua integer

Identifier of an interior.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Returns the current interior id from gameplay camera

Reference

Namespace
Interior INTERIOR
In the game
Interior GET_INTERIOR_FROM_PRIMARY_VIEW()
Hash
0xE7D267EC6CA966C3
Introduced
Game build 1604 legacy numbering
Formerly
_GET_INTERIOR_FROM_GAMEPLAY_CAM

Open in the interactive natives reference