mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
Upload
This commit is contained in:
35
gamemodes/darkrp/plugins/customitems/sh_plugin.lua
Normal file
35
gamemodes/darkrp/plugins/customitems/sh_plugin.lua
Normal file
@@ -0,0 +1,35 @@
|
||||
--[[
|
||||
| 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/
|
||||
--]]
|
||||
|
||||
|
||||
PLUGIN.name = "Advanced Custom Item Creation"
|
||||
PLUGIN.author = "Aspect™"
|
||||
PLUGIN.description = "Adds the ability to create custom items on the fly with advanced customization options."
|
||||
|
||||
ix.util.Include("cl_hooks.lua")
|
||||
ix.util.Include("cl_plugin.lua")
|
||||
ix.util.Include("sv_hooks.lua")
|
||||
ix.util.Include("sv_plugin.lua")
|
||||
|
||||
CAMI.RegisterPrivilege({
|
||||
Name = "Helix - Create Custom Script",
|
||||
MinAccess = "admin"
|
||||
})
|
||||
|
||||
ix.command.Add("CreateCustomItem", {
|
||||
description = "Opens the Custom Item Creator menu.",
|
||||
OnRun = function(self, client)
|
||||
net.Start("ixCreateCustomItem")
|
||||
net.Send(client)
|
||||
end,
|
||||
OnCheckAccess = function(self, client)
|
||||
return CAMI.PlayerHasAccess(client, "Helix - Create Custom Script")
|
||||
end
|
||||
})
|
||||
Reference in New Issue
Block a user