So I am hosting a server and I am trying to spawn a entity on map start. I know that this is kind of the code you need
hook.Add( "InitPostEntity", "createdealer", function() local dealer = ents.Create("scripted_entity") dealer:SetPos(Vector(6573, 4321, 202)) dealer:SetAngles(Angle(0, 0, 0)) dealer:SetModel("models/Characters/Hostage_02.mdl") dealer:SetSolid(SOLID_BBOX) dealer:Spawn() end)
So I dont understand how to make it spawn the entity because the entity comes with the model set and code. All I need to do is spawn it and set its angles and position. How would I do this? Any help is appreciated.