World Props

Ok so what I am looking to do is make a text screen a world prop so that everytime the server restarts it is still there and at a certain spot

I think this is your best bet.

That does not work because I forgot to add in that it is for a Darkrp Server

This is how I would do it :slight_smile:

( For DarkRP 2.4.3 )
1: Find the name of the model you wish to be spawned.
2: Place this code in main.lua (or make a module if you can) and prepare to edit.


function SpawnProps()
local prop = ents.Create("prop_physics")
prop:SetPos(Vector(0.000000, 0.000000, 0.000000)) // The location you want
prop:SetAngles(Angle(0.000000,0.00000,0.000000)) // Angle of the object
prop:Spawn()
prop:SetModel( "" ) // The prop model
end
hook.Add("InitPostEntity", "SpawnProps", SpawnProps)

3: Go in game, type “getpos” without quotations in console, and copy the vector.
4: Fill in the line “prop:SetPos” (Replace the 0’s with your wanted numbers
5: Also fill in the “prop:SetAngle” (These are after the “setangle”
6: Find the model in the spawn list (Q menu) and click “Copy to clipboard”
7: Fill in “prop:SetModel” and make sure that you have it in quotations. EG for that line prop:SetModel( “models/props_borealis/bluebarrel001.mdl” )

Make sure that this is in either a core LUA file or you make it into a module for DarkRP.

Enjoy, and I hope this helped.

that does help but what is the entity for a text screen with words already in it?

You can still use the perm props system, did you even look at it? You do it in sandbox first on the map you want, save the export it as a txt file. It is in you gmod data under maps. All you have to do after that is copy it over to your servers map files.