Files
wnsrc/gamemodes/darkrp/plugins/wn7_gestures/sh_plugin.lua

36 lines
1.0 KiB
Lua
Raw Normal View History

2024-08-04 22:55:00 +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 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 = "Ouvrir le menu des signaux !",
OnRun = function(self, client)
if not PLUGIN.availableAnimClasses[ix.anim.GetModelClass(client:GetModel())] then return client:NotifyLocalized("Votre model n'est pas pris en charge") end
net.Start("ixOpenHandSignalMenu")
net.Send(client)
end
})