PostHiding Players

Posts 1–9 of 9 · Page 1 of 1
Hiding Players
Seen only a few servers with this feature so not release it.

Go to: com > comp > assem > objects > Player.as

Place this code in the "override public function draw" function above "super.draw(_arg_1, _arg_2, _arg_3);"
Code:
        switch (Parameters.data_.hideList) {
            case 1:
                if (this != map_.player_ && !this.starred_) return;
                break;
            case 2:
                if (this != map_.player_ && !this.isFellowGuild_) return;
                break;
            case 3:
                if (this != map_.player_ && !this.starred_ && !this.isFellowGuild_) return;
                break;
        }

Next. Go to: com > comp > assem > ui > options > Options.as

Add this line of code in the "private function addGraphicOptions"
Code:
this.addOptionAndPosition(new ChoiceOption("hideList", makeHideLabels(), [0, 1, 2, 3], "Hide Players", "Hide players on screen", null));
Last but not least. In the same file, add this function below the "private function addGraphicOptions" ( NOT IN BUT BELOW)
Code:
    private static function makeHideLabels():Vector.<StringBuilder> {
        return (new <StringBuilder>[new StaticStringBuilder("Off"),
            new StaticStringBuilder("Locked"), new StaticStringBuilder("Guild"), new StaticStringBuilder("Both")]);
    }
Hey there! i could not find private function addGraphicOptions on my as3 client
im using fsod
Quote Originally Posted by philipovrell View Post
Hey there! i could not find private function addGraphicOptions on my as3 client
im using fsod
Just press Shift + F and search the function in the file. That should help a lot
Fix
Quote Originally Posted by philipovrell View Post
Well i tryed that lmao!
Hey just add "private static function makeHideLabels" somewhere in options.as
Quote Originally Posted by NyanCatOK View Post
thanks @PainPlayzz
u great developer
Me bad developer but your welcome
Quote Originally Posted by PainPlayzz View Post
Seen only a few servers with this feature so not release it.

Go to: com > comp > assem > objects > Player.as

Place this code in the "override public function draw" function above "super.draw(_arg_1, _arg_2, _arg_3);"
Code:
        switch (Parameters.data_.hideList) {
            case 1:
                if (this != map_.player_ && !this.starred_) return;
                break;
            case 2:
                if (this != map_.player_ && !this.isFellowGuild_) return;
                break;
            case 3:
                if (this != map_.player_ && !this.starred_ && !this.isFellowGuild_) return;
                break;
        }

Next. Go to: com > comp > assem > ui > options > Options.as

Add this line of code in the "private function addGraphicOptions"
Code:
this.addOptionAndPosition(new ChoiceOption("hideList", makeHideLabels(), [0, 1, 2, 3], "Hide Players", "Hide players on screen", null));
Last but not least. In the same file, add this function below the "private function addGraphicOptions" ( NOT IN BUT BELOW)
Code:
    private static function makeHideLabels():Vector.<StringBuilder> {
        return (new <StringBuilder>[new StaticStringBuilder("Off"),
            new StaticStringBuilder("Locked"), new StaticStringBuilder("Guild"), new StaticStringBuilder("Both")]);
    }
is this for nrcore or fsod?
Quote Originally Posted by Littlizard View Post
is this for nrcore or fsod?
This works in both. Already tested myself
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us