Files
wnsrc/lua/arccw/client/cl_vrmod.lua
lifestorm 9c918c46e5 Upload
2024-08-04 23:12:27 +03:00

23 lines
592 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/
--]]
local function addmenu()
if !vrmod then return end
vrmod.AddInGameMenuItem("ArcCW Customize", 3, 1, function()
local wep = LocalPlayer():GetActiveWeapon()
if !IsValid(wep) or !wep.ArcCW then return end
wep:ToggleCustomizeHUD(!IsValid(ArcCW.InvHUD))
end)
end
hook.Add("VRMod_Start", "ArcCW", addmenu)