feat: Сохранение клиентского токена в root table

This commit is contained in:
AURUMVORXX
2025-11-06 20:58:25 +05:00
parent d7c17fb262
commit 4b03e6fac8

View File

@@ -1,10 +1,12 @@
addEvent("onReceiveClientPassword"); addEvent("onReceiveClientPassword");
CLIENT_PASSWORD <- -1;
addEventHandler("onPacket", function(data){ addEventHandler("onPacket", function(data){
local id = data.readUInt8(); local id = data.readUInt8();
if (id == 250) if (id == 250)
{ {
local client_password = data.readString(); local client_password = data.readString();
CLIENT_PASSWORD = client_password;
callEvent("onReceiveClientPassword", client_password); callEvent("onReceiveClientPassword", client_password);
} }
}) })