D.Kyle Posted April 15, 2018 Share Posted April 15, 2018 (edited) 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 ^^. Edited April 15, 2018 by D.Kyle Link to comment Share on other sites More sharing options...
Jack Posted April 15, 2018 Share Posted April 15, 2018 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- 2 Wanted Level Editor End Phone Call in Vice City My YouTube Channel Link to comment Share on other sites More sharing options...
D.Kyle Posted April 15, 2018 Author Share Posted April 15, 2018 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 ! Link to comment Share on other sites More sharing options...
Rymar Posted April 16, 2018 Share Posted April 16, 2018 https://github.com/DK22Pac/plugin-sdk/wiki/Installing-development-environment-(IDE) Link to comment Share on other sites More sharing options...
D.Kyle Posted April 19, 2018 Author Share Posted April 19, 2018 Thanks for help ! Link to comment Share on other sites More sharing options...
Guest Posted April 22, 2018 Share Posted April 22, 2018 For any further doubt about PluginSDK, join the support Discord server at https://discord.gg/mVJcXXv Link to comment Share on other sites More sharing options...