Pivity

VCMod problem with TDM GTA cars

Last read Never
#1

Hi there,


I’m having an issue on my darkrp server where I’ve disabled “VCmod cars can run players over” but players are still being killed. To prevent this I’ve added a script making players no collide with cars.


Is there a way I can make it so that players still collide with cars but take no damage as the VCmod function doesn’t seem to work.


To combat this I have added a script into the garrysmod/lua/autorun/server


hook.Add("PlayerSpawnedVehicle","DisableCollisionVehicle", function(ply, ent)


 if IsValid(ent) then


  ent:SetCollisionGroup(COLLISION_GROUP_WEAPON)


 end


end)


has anyone else experienced this issue?

Users viewing this thread
Nobody