Files
wnsrc/lua/arccw/client/cl_vrmod.lua

23 lines
592 B
Lua
Raw Permalink Normal View History

2024-08-05 18:40:29 +03:00
--[[
| 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)