Skip to content
On this page

AthenaClient.streamers.item

Type Aliases

CreatedDrop

Ƭ CreatedDrop: player & { createdObject?: alt.Object }

Defined in

client/streamers/item.ts:8

Functions

getClosest

Usage

AthenaClient.streamers.item.getClosest(): player[]

Return an array of items that are closest to the player.

Static

Returns

player[]

Defined in

client/streamers/item.ts:132


getDropped

Usage

AthenaClient.streamers.item.getDropped(id): CreatedDrop | undefined

Determine if this alt.Object is an item drop.

Parameters

NameType
idnumber

Returns

CreatedDrop | undefined

Defined in

client/streamers/item.ts:161


setDefaultDropModel

Usage

AthenaClient.streamers.item.setDefaultDropModel(model): void

Overrides the default model for item drops. By default it is a cardboard box.

Parameters

NameType
modelstring

Returns

void

Defined in

client/streamers/item.ts:142


setDefaultMaxDistance

Usage

AthenaClient.streamers.item.setDefaultMaxDistance(distance?): void

Set the maximum distance a player can see item drops.

Parameters

NameTypeDefault value
distance?number5

Returns

void

Defined in

client/streamers/item.ts:151

Created by Stuyk | Est. 2020