dobrograd-13-06-2022/garrysmod/addons/feature-wire/lua/wire/stools/dataport.lua
Jonny_Bro (Nikita) e4d5311906 first commit
2023-11-16 15:01:19 +05:00

20 lines
700 B
Lua

WireToolSetup.setCategory( "Advanced" )
WireToolSetup.open( "dataport", "Data - Port", "gmod_wire_dataport", nil, "Data Ports" )
if ( CLIENT ) then
language.Add( "Tool.wire_dataport.name", "Data port tool (Wire)" )
language.Add( "Tool.wire_dataport.desc", "Spawns data port consisting of 8 ports" )
TOOL.Information = { { name = "left", text = "Create/Update data port" } }
end
WireToolSetup.BaseLang()
WireToolSetup.SetupMax( 20 )
TOOL.ClientConVar[ "model" ] = "models/jaanus/wiretool/wiretool_gate.mdl"
if SERVER then
-- Uses default WireToolObj:MakeEnt's WireLib.MakeWireEnt function
end
function TOOL.BuildCPanel(panel)
ModelPlug_AddToCPanel(panel, "gate", "wire_dataport", nil, 4)
end