Quantcast

Jump to content

» «
Photo

Invisible Player

5 replies to this topic
D.Kyle
  • D.Kyle

    Coder

  • Members
  • Joined: 24 Aug 2017
  • Vietnam

#1

Posted 15 April 2018 - 11:00 AM Edited by D.Kyle, 15 April 2018 - 11:01 AM.

Hello everyone ! i have a question: How to make Player ( CJ ) invisible ?
all method i have tried:
1.This totally not working

 

0337: set_actor [email protected] visibility 0

2.This cause crash

 

0A96: [email protected] = actor $PLAYER_ACTOR struct 
0AA6: call_method 5452480 struct [email protected] num_params 1 pop 1 1000  

and finally, i tried to change player model to empty model but i dont have the empty model so i didnt test it yet.

 

0A96: [email protected] = actor $PLAYER_ACTOR struct 

0AA6: call_method 5452480 struct [email protected] num_params 1 pop 1 0

Any idea how to make it work ?

P/S: I'm bad at English LOL ^^.


Jack
  • Jack

    MODEL_SWAT

  • Feroci
  • Joined: 06 Dec 2011
  • Serbia

#2

Posted 15 April 2018 - 01:18 PM

Hello everyone...

 

 

If you're using plugin-sdk then this will work:

#include "plugin.h"
#include "common.h"
#include "CPed.h"

using namespace plugin;

class visibility {
public:
    visibility() {
        plugin::Events::gameProcessEvent += [] {
            CPed *playa = FindPlayerPed();
            if (playa && playa->m_bIsVisible != false) {
                playa->m_bIsVisible = false;
            }
        };
    }
} _visibility;
  • DK22Pac and Sloth- like this

D.Kyle
  • D.Kyle

    Coder

  • Members
  • Joined: 24 Aug 2017
  • Vietnam

#3

Posted 15 April 2018 - 02:58 PM

 

Hello everyone...

 

 

If you're using plugin-sdk then this will work:

#include "plugin.h"
#include "common.h"
#include "CPed.h"

using namespace plugin;

class visibility {
public:
    visibility() {
        plugin::Events::gameProcessEvent += [] {
            CPed *playa = FindPlayerPed();
            if (playa && playa->m_bIsVisible != false) {
                playa->m_bIsVisible = false;
            }
        };
    }
} _visibility;

where i can download or compile above scripts ? btw i go to the link you post but i have no idea which file i should download.Please help and thanks !


Rymar
  • Rymar

    Player Hater

  • Members
  • Joined: 27 Oct 2015
  • Poland

#4

Posted 16 April 2018 - 09:17 PM

https://github.com/D...vironment-(IDE)


D.Kyle
  • D.Kyle

    Coder

  • Members
  • Joined: 24 Aug 2017
  • Vietnam

#5

Posted 19 April 2018 - 07:36 AM

Thanks for help !


Veryzon
  • Veryzon

    The Masked Man

  • Members
  • Joined: 15 Jun 2017
  • Brazil

#6

Posted 4 weeks ago

For any further doubt about PluginSDK, join the support Discord server at https://discord.gg/mVJcXXv





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users