Files
wnsrc/gamemodes/darkrp/plugins/ln_hints/sh_options.lua
lifestorm 73479cff9e Upload
2024-08-04 22:55:00 +03:00

35 lines
760 B
Lua

--[[
| This file was obtained through the combined efforts
| of Madbluntz & Plymouth Antiquarian Society.
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
| Maloy, DrPepper10 @ RIP, Atle!
|
| Visit for more: https://plymouth.thetwilightzone.ru/
--]]
ix.option.Add("enableHints", ix.type.bool, true, {
category = "Apparence",
OnChanged = function(oldValue, value)
if (timer.Exists("ixHintsTimer")) then
if (value) then
timer.UnPause("ixHintsTimer")
else
timer.Pause("ixHintsTimer")
end
end
end
})
ix.option.Add("hintInterval", ix.type.number, 300, {
category = "Apparence",
min = 1,
max = 1800,
OnChanged = function(oldValue, value)
if (timer.Exists("ixHintsTimer")) then
timer.Adjust("ixHintsTimer", value)
end
end
})