Skip to content

Commit c0974d2

Browse files
committed
Shrink hint msg by a bit
1 parent 0f96b95 commit c0974d2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lua/caf/core/client/notify.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ end
66

77
net.Receive("Player_AddHint", function()
88
local txt = net.ReadString()
9-
local typ = net.ReadInt(32)
10-
local len = net.ReadInt(32)
9+
local typ = net.ReadInt(8)
10+
local len = net.ReadInt(8)
1111
LocalPlayer():AddHint(txt, typ, len)
1212
end)

lua/caf/core/server/notify.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ function PLY:AddHint(txt, typ, len)
1515

1616
net.Start("Player_AddHint")
1717
net.WriteString(txt)
18-
net.WriteInt(typ or NOTIFY_GENERIC, 32)
19-
net.WriteInt(len or 5, 32)
18+
net.WriteInt(typ or NOTIFY_GENERIC, 8)
19+
net.WriteInt(len or 5, 8)
2020
net.Send(self)
2121
end
2222

0 commit comments

Comments
 (0)