getCameraInterior | Multi Theft Auto: Wiki Skip to content

getCameraInterior

Client-side
Server-side
Shared
Needs checking

This function was partially migrated from the old wiki. Please review manually:

  • Missing section: Procedural
  • Missing section: Object-oriented

Pair: setCameraInterior

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


Returns the interior of the local camera (independent of the interior of the local player).

Syntax

getCameraInterior ( )

Code Examples

server
function outputCameraInterior ( player, command )
local interior = getCameraInterior ( player )
outputChatBox ( "The camera is in the interior " .. interior, player, 255, 255, 0 )
end
addCommandHandler ( "camera", outputCameraInterior )