native

attach_view

Syntax

native attach_view(iIndex, iTargetIndex);

Description

Attaches a clients viewport to an entity.

Parameters

iIndex Client index
iTargetIndex Index of entity to attach to

Note

To reset the clients viewport, call this function with the client index
as the target entity.

Error

If the client index is not within the range of 1 to
MaxClients, or the client is not connected, an error
will be thrown.