1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Sign up for news, events and more!

    You're currently visiting the official DarkRP Forums as a guest. Sign up now to participate in our community and we'll let you know when we have news.

Disabling collisions between players

Discussion in 'DarkRP Modding Questions & Help' started by Kitai, Jan 10, 2020.

  1. Kitai

    Kitai New Member

    How can I disable collision when the player is in cloak mode?
    --- Double Post Merged, Jan 19, 2020 at 8:12 AM ---
    I do it. Write in lua/autorun/server/somefilename.lua next code:
    Code (Text):

    for k, v in pairs(player.GetAll()) do
        if v:GetColor().a < 100 or v:GetNoDraw() then
    v:SetCollisionGroup(COLLISION_GROUP_WORLD)
        else
               v:SetCollisionGroup(COLLISION_GROUP_NONE)
        end
    end
     
     
    Last edited: Jan 19, 2020 at 8:12 AM

Share This Page