CHandle

This type represents an entity handle.

circle-info

You can also compare this type using a == operator.

index

Field

Type: number


Get

Method

Returns the entity, or nil if nothing found.

Arguments

None.

Returns

Type

Description

<type>

Entity instance.

Example

local ent = handle:Get();

Valid

Method

Returns true if the handle is valid.

Arguments

None.

Returns

Type

Description

bool

true if valid.

Example


IsClientSide

Method

Returns true if the handle links to a client-side entity.

Arguments

None.

Returns

Type

Description

bool

true if client-sided.

Example

Last updated