Skip to content
On this page

Athena.systems.rpc

Interfaces

Type Aliases

Callback

Ƭ Callback: (player: alt.Player, ...args: any[]) => void

Type declaration

Usage

Athena.systems.rpc.(player, ...args): void

Parameters
NameType
playeralt.Player
...argsany[]
Returns

void

Defined in

server/systems/rpc.ts:4

Functions

invoke

Usage

Athena.systems.rpc.invoke(player, event, callback): void

Invoke an RPC event, and get a result.

If the timeout expires; the callback will pass undefined.

Example

ts
Athena.systems.rpc.invoke(somePlayer, 'getLocalPos', (player: alt.Player, pos: alt.IVector3) => {
     alt.log('RPC Position was' + JSON.stringify(pos));
})

Export

Parameters

NameType
playerPlayer
eventServerRpcEvent
callbackCallback

Returns

void

Defined in

server/systems/rpc.ts:61

Created by Stuyk | Est. 2020