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

21 lines
728 B
Lua

WireToolSetup.setCategory( "Input, Output/Data Transfer" )
WireToolSetup.open( "twoway_radio", "Two-way Radio", "gmod_wire_twoway_radio", nil, "Two-way Radios" )
if ( CLIENT ) then
language.Add( "Tool.wire_twoway_radio.name", "Two-Way Radio Tool (Wire)" )
language.Add( "Tool.wire_twoway_radio.desc", "Spawns a two-way radio for use with the wire system." )
end
WireToolSetup.BaseLang()
WireToolSetup.SetupMax( 20 )
if (SERVER) then
ModelPlug_Register("radio")
end
TOOL.ClientConVar[ "model" ] = "models/props_lab/binderblue.mdl"
WireToolSetup.SetupLinking(true, "two-way radio")
function TOOL.BuildCPanel(panel)
WireDermaExts.ModelSelect(panel, "wire_twoway_radio_model", list.Get( "Wire_radio_Models" ), 2, true)
end