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

29 lines
828 B
Lua

WireToolSetup.setCategory( "Physics", "Detection" )
WireToolSetup.open( "weight", "Weight (Adjustable)", "gmod_wire_weight", nil, "Adjustable Weights" )
if CLIENT then
language.Add( "tool.wire_weight.name", "Weight Tool (Wire)" )
language.Add( "tool.wire_weight.desc", "Spawns a weight." )
TOOL.Information = {
{ name = "left", text = "Create/Update " .. TOOL.Name },
{ name = "reload", text = "Copy model" },
}
end
WireToolSetup.BaseLang()
WireToolSetup.SetupMax( 20 )
if SERVER then
ModelPlug_Register("weight")
function TOOL:GetConVars() end
-- Uses default WireToolObj:MakeEnt's WireLib.MakeWireEnt function
end
TOOL.ClientConVar = {
model = "models/props_interiors/pot01a.mdl",
}
TOOL.ReloadSetsModel = true
function TOOL.BuildCPanel(panel)
ModelPlug_AddToCPanel(panel, "weight", "wire_weight", true)
end