mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
Upload
This commit is contained in:
27
gamemodes/helix/plugins/modelanimationsplayer/cl_hooks.lua
Normal file
27
gamemodes/helix/plugins/modelanimationsplayer/cl_hooks.lua
Normal file
@@ -0,0 +1,27 @@
|
||||
--[[
|
||||
| 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 PLUGIN = PLUGIN
|
||||
|
||||
PLUGIN.menu = PLUGIN.menu or nil
|
||||
PLUGIN.selectedSequence = PLUGIN.selectedSequence or nil
|
||||
|
||||
netstream.Hook("ixModelAnimationsShowMenu", function(ply)
|
||||
if (!CAMI.PlayerHasAccess(LocalPlayer(), "Helix - " .. PLUGIN.name, nil)) then return end
|
||||
|
||||
if (!PLUGIN.menu) then
|
||||
PLUGIN.menu = vgui.Create("ixModelAnimationsList")
|
||||
|
||||
return
|
||||
end
|
||||
|
||||
PLUGIN.menu:Remove()
|
||||
PLUGIN.menu = nil
|
||||
end)
|
||||
Reference in New Issue
Block a user