#GitHub - MaaxITlocal-nw-vars A Garry's...

1 messages · Page 1 of 1 (latest)

sturdy depot
#

why? NW SetLocalPlayer already exists.
your implementation has fewer features and puts an incomparably greater load on the network.
https://github.com/SuperiorServers/dash/blob/a0d4347371503b1577d72bed5f6df46d48909f56/lua/dash/libraries/nw.lua

nw.Register("Hunger")
:Write(net.WriteUInt, 7)
:Read(net.ReadUInt, 7)
:SetLocalPlayer()

function PLAYER:GetHunger()
    return self:GetNetVar("Hunger")
end

if SERVER then
    function PLAYER:SetHunger(amnt)
        self:SetNetVar("Hunger", math.Clamp(amnt, 0, 100))
    end
end
GitHub

Collection of libraries, utilities, and core Garry's Mod changes intended to improve development of addons and gamemodes - dash/nw.lua at a0d4347371503b1577d72bed5f6df46d48909f56 · Superior...

exotic carbon
split edge
#

If you implement nwtable you will become the next garrysm (you have 3 turns until you deprecate it for the whole existence)

sudden patrol
sudden patrol