setCameraClip | Multi Theft Auto: Wiki Skip to content

setCameraClip

Client-side
Server-side
Shared

Pair: getCameraClip

This page is incomplete! Help wanted!

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


This function sets if the camera will "collide" with any objects or vehicles in its way. This means that if object clip is enabled an object is in the way of where the camera actually wants to be, the camera will try to be in front of it. This function can disable that.

Syntax

setCameraClip ( )

Code Examples

client

This function enables it to look through cars

function enableCameraThoughCars ()
setCameraClip (true,false)
outputChatBox ("Your camera can see the vehicle interior now!",255,0,0,false)
end
addEventHandler ("onClientResourceStart",resourceRoot,enableCameraThoughCars)