Hello, I have a DarkRP server and I would like to have a cinema in it.
I have a working addon (PlayX) and I have done a proximity for it, but I am unsure how I would make it spawn automatically, so that it doesn't have to be spawned by an admin and stays there when they disconnect.
I have found this:
[CODE]barrel=ents.Create("prop_physics")
barrel:SetModel("models/props_c17/oildrum001.mdl")
barrel:SetPos(Vector(0,0,0))
barrel:Spawn()[/CODE]
Showing how to spawn a prop automatically, but not an entity?
So the entity is called: gmod_playx
How would I make this spawn at a certain Vector ?
Change the SetPos vector to where you want it to spawn.
[editline]18th May 2013[/editline]
Do you have the spawn function of it set up or anything at all?
[editline]18th May 2013[/editline]
I thought PlayX had a feature implemented in it by default for creating playx players...
[QUOTE]I thought PlayX had a feature implemented in it by default for creating playx players...[/QUOTE]
Really? Where do I access this? o.O In the VGUI?
[code]function SpawnPlayXPlayer()
local playxplayer = ents.Create("gmod_playx")
playxplayer:SetPos(Vector(0,0,0))
playxplayer:SetAngles(Angle(0,90,0))
playxplayer:Spawn()
end
hook.Add("InitPostEntity", "SpawnPlayXPlayer", SpawnPlayXPlayer)[/code]
Wow you just made my day! You must feel proud!
Many Thanks WholeGamer
Sorry, you need to Log In to post a reply to this thread.