How to add Wiremod outputs to my entity

I know that I look stupid, and I probably am, but I’ve been trying for the past two hours to add Wiremod outputs to my entity. I did exactly what other addons were doing, but nothing worked. It’s not giving any errors at all, so if you guys could tell me what to do and give me examples for different scenarios, that would help a lot. Thank you!


It’d be helpful if you would post the code you tried, also you’d probably get faster help at the wiremod discord.

Why didn’t I think of the Discord .-.


Next time, or, at least, now, you can add on the forums some actual info on how to do it and else for other people that may be looking for the same thing. And also, mark the post as solved as well to lock it.
Add info about how you fixed it and mark the post as solved.

I know this thread is solved … but I’ll post the answer anyway for others.

First you need to check if wiremod is installed. You do this with a global variable called “WireAddon”.
After that you create the outputs with Wire_CreateOutputs.
Then you set the variables with “Wire_TriggerOutput”.

Your code should look something like this:

function ENT:Initialize()
	self:SetModel( "models/props_lab/reciever01d.mdl" )
	self:PhysicsInit( SOLID_VPHYSICS )
	self:SetMoveType( MOVETYPE_VPHYSICS )
	self:SetSolid( SOLID_VPHYSICS )
	if WireAddon then
		self.Outputs = Wire_CreateOutputs(self, {
			"my_name [STRING]"
		Wire_TriggerOutput(self, "potatos", math.random(360))
		Wire_TriggerOutput(self, "my_name", "John snow")

Then you can update the output with “Wire_TriggerOutput(entity,data_name,variable)” at any point.