#Library for pro devs

1 messages · Page 1 of 1 (latest)

teal quiver
drifting cypress
#

if that makes sense

teal quiver
drifting cypress
#

oh shit, right, i see what ur saying

#

didn't think about that, just thought to replace my hook with some default one, should've thought about it a little more. ty

teal quiver
#

btw read warning on GM:PlayerInitialSpawn wiki page, I think this method is much better than a timer

green rock
#

I mean, man

#

You might have left at least a single comment in your code

#

Not even a README

drifting cypress
#

Uploaded it during a discussion as to why SetNWTable is a stupid idea, pasted it from my gamemode.

Shall add documentation soonish 🙏

green rock
#

Ok

#

Also

#
local function Type2String(type)
    if type == TYPE_STRING then
        return "String"
    elseif type == TYPE_NUMBER then
        return "Int"
    elseif type == TYPE_ENTITY then
        return "Entity"
    elseif type == TYPE_BOOL then
        return "Bool"
    elseif type == TYPE_FLOAT then
        return "Float"
    end
    return ""
end

local function ReadType(type)
    if type == TYPE_STRING then
        return net.ReadString()
    elseif type == TYPE_NUMBER then
        return net.ReadInt(32)
    elseif type == TYPE_ENTITY then
        return net.ReadEntity()
    elseif type == TYPE_BOOL then
        return net.ReadBool()
    elseif type == TYPE_FLOAT then
        return net.ReadFloat()
    end
    return
end```This cancer
fair jasper
#

i love case-switches i love case-switches

green rock
#

Why the fuck do you make same functions in cl and sv instead of making it sh?

teal quiver
#

@drifting cypress dud, pls make assoc table

green rock
#

I'm forking this shit

drifting cypress
fair jasper
#

just make a global table

#

then youll be ok

drifting cypress
#

Would rather copy paste the function than add needless globals tbh

teal quiver
#

-- shit.lua

return yourData

-- test.lua

local myData = include("shit.lua")