• [Darkrp] Cars spawn non-nocollided how do I change?
    1 replies, posted
Ok just as the title says I guess.. Basically I wanna get cars to spawn nocollided, as I am well aware the potential of them used to crash my server or anyone's server. (Just driving it into a bunch of condensed welded props, perhaps..) If any of you know a place in the darkrp config or my car dealer then say I guess..
[CODE] hook.Add("OnEntityCreated", "VehicleNoCollideHook", function(ent) if ( ent:GetClass() == "prop_vehicle_jeep" ) then ent:SetCollisionGroup(COLLISION_GROUP_XXXXXXXX) end end) [/CODE] Put that somewhere on the server, experiment with which collision group you want. They're found on this page: [url]http://wiki.garrysmod.com/page/Enums/COLLISION[/url]
Sorry, you need to Log In to post a reply to this thread.