1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00

Merge pull request #473 from metrostroi-repo/#472

PR of issue #472
This commit is contained in:
CrIcKeT98
2022-07-12 00:25:39 +03:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -2321,8 +2321,8 @@ end
local function sendPanelTouch(panel,x,y,outside,state) local function sendPanelTouch(panel,x,y,outside,state)
net.Start("metrostroi-panel-touch") net.Start("metrostroi-panel-touch")
net.WriteString(panel or "") net.WriteString(panel or "")
net.WriteInt(x,11) net.WriteUInt(x,11)
net.WriteInt(y,11) net.WriteUInt(y,11)
net.WriteBool(outside) net.WriteBool(outside)
net.WriteBool(state) net.WriteBool(state)
net.SendToServer() net.SendToServer()

View File

@@ -2219,8 +2219,8 @@ end)
-- Receiver for panel touchs, Checks if people are the legit driver and calls buttonevent on the train -- Receiver for panel touchs, Checks if people are the legit driver and calls buttonevent on the train
net.Receive("metrostroi-panel-touch", function(len, ply) net.Receive("metrostroi-panel-touch", function(len, ply)
local panel = net.ReadString() local panel = net.ReadString()
local x = net.ReadInt(11) local x = net.ReadUInt(11)
local y = net.ReadInt(11) local y = net.ReadUInt(11)
local outside = net.ReadBool() local outside = net.ReadBool()
local state = net.ReadBool() local state = net.ReadBool()
local seat = ply:GetVehicle() local seat = ply:GetVehicle()