mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
Upload
This commit is contained in:
36
gamemodes/darkrp/plugins/wn7_gestures/sh_plugin.lua
Normal file
36
gamemodes/darkrp/plugins/wn7_gestures/sh_plugin.lua
Normal file
@@ -0,0 +1,36 @@
|
||||
--[[
|
||||
| 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.name = "Dialogue Gestures & Hand Signals"
|
||||
PLUGIN.author = "Naast & Aspect™"
|
||||
PLUGIN.description = "Adds dialogue gestures & hand signals."
|
||||
|
||||
ix.util.Include("meta/sv_player.lua")
|
||||
ix.util.Include("cl_plugin.lua")
|
||||
ix.util.Include("sh_options.lua")
|
||||
ix.util.Include("sv_hooks.lua")
|
||||
|
||||
PLUGIN.availableAnimClasses = {
|
||||
["metrocop"] = true,
|
||||
["citizen_male"] = true,
|
||||
["citizen_female"] = true,
|
||||
["overwatch"] = true
|
||||
}
|
||||
|
||||
ix.command.Add("Handsignals", {
|
||||
description = "Open the handsignals menu!",
|
||||
OnRun = function(self, client)
|
||||
if not PLUGIN.availableAnimClasses[ix.anim.GetModelClass(client:GetModel())] then return client:NotifyLocalized("Your model is not supported") end
|
||||
net.Start("ixOpenHandSignalMenu")
|
||||
net.Send(client)
|
||||
end
|
||||
})
|
||||
Reference in New Issue
Block a user