mirror of
https://github.com/CapsAdmin/wowozela.git
synced 2025-03-04 03:13:27 -05:00
Resetting the custom page is now instant
This commit is contained in:
parent
0430c2ae7a
commit
d4380b6ff9
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user