getInteriorFromPrimaryView
GET_INTERIOR_FROM_PRIMARY_VIEW0xE7D267EC6CA966C3The 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.
getInteriorFromPrimaryView(): InteriorgetInteriorFromPrimaryView(): InteriorUsage
JavaScript
const interior = getInteriorFromPrimaryView();Lua
local interior = getInteriorFromPrimaryView()Parameters
None.
Returns
Interior JavaScript number, Lua integerIdentifier 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