• Spawn props in base?
    1 replies, posted
How do I spawn props in base without sv_cheats on? gm_spawn only works in sandbox, and prop_physics_create only works with sv_cheats on by spawning, I mean like if someone pressed a button, it'd spawn the prop where they're pointing at.
[lua] concommand.Add("spawnprop", function(ply, command, args) if !args or !args[1] then return end local ent = ents.Create("prop_physics") ent:SetModel(args[1]) ent:SetPos(ply:GetEyeTrace().HitPos) ent:Spawn() end) [/lua] Untested, but there's a base to work from. spawnprop models/whatever.mdl
Sorry, you need to Log In to post a reply to this thread.