Hello all, I wondered if you guys could help me out here.
So im making a mod for a server that will block all the props spawned by any player unless its in a spawn menu that I have created.
here is what I have so far as a basic model:
_________________________________________________________________________________________________________
hook.Add("PopulatePropMenu", "Allowed Props", function()
contents = {}
-- Props
table.insert( contents, {
type = "header",
text = "Props"
} )
table.insert( contents, {
type = "model",
model = "models/props_c17/oildrum001.mdl"
} )
table.insert( contents, {
type = "model",
model = "models/props_wasteland/cargo_container01.mdl",
skin = 1,
wide = 128,
tall = 64
} )
spawnmenu.AddPropCategory( "SpawnableProps", "Spawnable Proplist", contents, "icon16/bricks.png" )
end )
_________________________________________________________________________________________________________________
I need a function to check if the prop that the client has spawned is in the list named contents, if its not in there, then don't spawn it.
secondly if possible, I want to hide all the other prop lists so that it only shows my custom one to the players that join the server.
any and all help is greatly appreciated!
Thanks all!
I think you wanted this section
Sorry, you need to Log In to post a reply to this thread.