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.

Explaining a function

Discussion in 'DarkRP Modding Questions & Help' started by NoOriginality, Jan 12, 2017.

  1. NoOriginality

    NoOriginality Member

    I am kinda confused on exactly what http://wiki.darkrp.com/index.php/Functions/Player/Client/isInRoom

    does.

    I realize it's only client, what player is it checking to local player? I don't really get it. How does this work?
    --- Double Post Merged, Jan 12, 2017 ---
    Alright, so I see it's for the talking function. I looked over the function and so far I haven't noticed in any way it couldn't be in the server? Is there a reason there isn't a function like this for server side? Would there be any problems if I tried to make it server side?

    https://github.com/FPtje/DarkRP/blob/master/gamemode/modules/base/sv_gamemode_functions.lua#L274
    --- Double Post Merged, Jan 12, 2017 ---
    Solved, dunno why it's only client.

    It just returns a trace line between ply and ply2 and see's if there is a wall between them.
     
    Last edited: Jan 12, 2017

Share This Page