#1min timer epic bypass
1 messages · Page 1 of 1 (latest)
i usually just do this for peformance reasons, in this case it doesnt matter at all but im just used to it
would this be better for performance?
doing :GetBool() on tick or on EntityTakeDamage is from what i saw just not needed
prolly
in that case u should do something like this
local convar = CreateConVar(...)
local disableTinnitus = convar:GetBool()
-- rest of the stuff the same```
iirc convars save after restarts n stuff
yeah but that wont update when the convars are changed
or some do anyway
-- rest of the stuff the same
included the callback
same thing, just different style
does the convar not save after reconnecting?
i.e if i disable it, reconnect, does it not stay disabled?
or does it reset to 1
it saves
ah yeah, in that case, you'd do this
because this returns a convar
it doesnt
it absolutely does
np
I was caught off guard
i know it looks ugly as fuck but i don't feel like it should be a new line either
idk
what I like to do is something like this
local value = CreateConVar()
value = value:GetBool()
I do that for indexing tables too as to not make a huge line or bunch of if statements
like for example
local moneyStored = sql.Query("Query")
moneyStored = moneyStored and moneyStored[1]
moneyStored = moneyStored and moneyStored.money
its iffy but it works & is neat imo
yeah works too ig
