Resetting the custom page is now instant

This commit is contained in:
Xerasin 2021-12-26 19:26:38 -08:00
parent 0430c2ae7a
commit d4380b6ff9

View File

@ -427,6 +427,13 @@ if CLIENT then
end
concommand.Add("wowozela_reset_custom_page", function()
local wep = IsValid(LocalPlayer()) and LocalPlayer():GetWeapon("wowozela")
if IsValid(wep) then
local customIndex = wep.CategoriesRev["custom"]
if customIndex then
wep.Pages[customIndex] = {{}, {}, {}, {}, {}, {}, {}, {}, {}, {}}
end
end
file.Delete("wowozela_custom_page.txt", "DATA")
end)