fix(rpc): prevent client id spoofing

This commit is contained in:
2026-09-28 02:05:40 +01:00
parent b48d3f5240
commit 6247b7d781
6 changed files with 100 additions and 91 deletions
+5 -2
View File
@@ -21,11 +21,14 @@ declare function RegisterCommand<A extends unknown[]>(
restricted: boolean,
): void
// ===== SERVER =====
/** Player that sent the current net event. Only valid synchronously in the handler */
declare var source: number
// ===== CLIENT =====
declare function RegisterNuiCallbackType(callbackType: string): void
declare function GetPlayerServerId(player: number): number
declare function PlayerId(): number
declare function SetNuiFocus(hasFocus: boolean, hasCursor: boolean): void
declare function SendNuiMessage(jsonString: string): boolean