Simple banned props whitelist script

I want a small script that lets me only spawn the props that I indicate.

[lua]local whiteList = {
[“some/path/to/model.mdl”] = true;
[“some/other/model.mdl”] = true;
}

hook.Add( “PlayerSpawnProp”, “UniqueName,Eh?”, function( ply, mdl )
return not whiteList[mdl]
end )[/lua]

Small indeed :v:

Actually I just want the props in the categorys useful_construction_props and useful_comic_props to be spawnable, thanks