ERROR: Trying to derive entity mx_radio from non existant entity base_gmodentity!

Hello guys!
I want to be able to spawn the mx_radio on my server using a console command

But the problem is that, everytime i try to spawn it in my server i got this error:

] mx_radio
ERROR: Trying to derive entity mx_radio from non existant entity base_gmodentity!
Error: Tried to make a SENT (mx_radio) but it didn’t have a ‘Type’ key!
Attempted to create unknown entity type mx_radio!

It’s only working in sandbox
How can i make it works , in my gamemode?

here is the lua script i’'m using:

[lua]
concommand.Add(“mx_radio”,function( ply )

	local ent = ents.Create( "mx_radio" )
            if ent:IsValid() then
	
	ent:SetPos( Vector( 2.873410, -646.491089, 80.533295 ) )
	ent:SetModel( "models/props_lab/citizenradio.mdl" )
	ent:Spawn()

	print("Mx Radio Spawned")
	end

end)
[/lua]

You’re in the same way as me : using a gamemode that works in the base gamemode.

gmod_baseentity is the base sandbox entity. It does not exist on any gamemode based on “base” gamemode, ways to fix :

  • Change gamemode
  • Remove the addon
  • Decompile addon and modify it so it can work with base gamemode
  • Recreate the addon.

Wrong subforum.
http://facepunch.com/forums/65