Athena.systems.rpc ​
Interfaces ​
Type Aliases ​
Callback ​
Ƭ Callback: (player: alt.Player, ...args: any[]) => void
Type declaration ​
Usage
Athena.systems.rpc.(player, ...args): void
Parameters ​
| Name | Type |
|---|---|
player | alt.Player |
...args | any[] |
Returns ​
void
Defined in ​
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 ​
| Name | Type |
|---|---|
player | Player |
event | ServerRpcEvent |
callback | Callback |
Returns ​
void
V5 Docs