mirror of
https://github.com/rilaxik/fivem-rpc.git
synced 2026-09-29 01:30:42 +00:00
fix(rpc): separate public calls + better pending handlers
This commit is contained in:
@@ -51,6 +51,7 @@ export class RPCInstanceBase {
|
||||
to: RPCEnvironment,
|
||||
args: unknown[],
|
||||
player: number | null,
|
||||
type: 'event' | 'broadcast' = 'event',
|
||||
): RPCState {
|
||||
return {
|
||||
event,
|
||||
@@ -60,7 +61,7 @@ export class RPCInstanceBase {
|
||||
error: null,
|
||||
data: args,
|
||||
player,
|
||||
type: 'event',
|
||||
type,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user