1. 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.

Draw Props

Discussion in 'DarkRP Modding Questions & Help' started by [WinLife] WayZer, Sep 5, 2017.

  1. Is it possible to somehow make the range of drawing props? I think this can be done with this line, but I do not know how.

    if(EyePos(): Distance(self:GetPos())<2000) then self: DrawModel() end
  2. Sir Klutch

    Sir Klutch Active Member

    First of all, should use DistToSqr.
    Code (Lua):

    if (self:GetPos():DistToSqr(EyePos()) <= 2000 * 2000) then self:DrawModel() end
    This would work, however, the only problem is finding somewhere to place it. I do believe prop_physics is defined in c++, so it's not like you can modify it easily. Let me call in a professional see if he has any ideas.

    @(FPtje) Atheos

Share This Page