Activate npc_target_maker with lua

I just started getting into lua and map making yesterday. I have a target npc set up as a headcrab, i have spawn destinations, and i have a npc_target_maker set to spawn headcrabs at the spawn points. If i enable the target maker IN the map maker, it works fine and as expected, but i would like to enable it on my player spawn because i intend to make a little gamemode. So is there a function to do this?

Pseudocode:

onPlayerSpawn
enable npc_target_maker
end

Thanks for your help.

[editline]05:17AM[/editline]

I kind of have some idea. I believe i have to use something like

BeginSpawn = function()
local Spawner = ents.FindByClass(“npc_template_maker”)

but after that im stuck T_T

I tried this:

BeginSpawn = function()
local Spawner = ents.FindByClass(“npc_template_maker”)
Spawner:Fire(“Enable”, “”, 0)
end

but i get the error "Attempt to call method ‘Fire’ (a nil value)

C’mon guys, SOMEONE has to know what to do