Live
Razor updated Auto FarmRazor updated Animal Farm ProRazor updated Animal Farm ProRazor updated Animal Farm ProKhaled updated Recycler Stationmagnumk reacted ❤️ to Halloween AtmosphereRustFlash published Halloween EventBrad Copp updated Water Wheel UpgradesBrad Copp updated Solar Panel UpgradesBrad Copp updated Biofuel Generator UpgradesBrad Copp updated Windmill UpgradesBL3CKD3RK reviewed rPhoneBL3CKD3RK reacted ⭐ to rPhoneRustFlash updated MyServerGearAlexProjects updated Zombie Swarm PROKhaled updated Heli LoadoutRazor updated Animal FarmRazor updated Animal Farmbadgyver updated CHRONUSBrad Copp updated Deep Sea OptionsRustFlash updated MyServerGearRazor updated Npc HorsesRazor updated Animal Farm ProDávid Balázs updated SquidBridgeBrad Copp updated Biofuel Generator UpgradesBrad Copp published Biofuel Generator UpgradesBrad Copp updated Water Wheel UpgradesBrad Copp updated Windmill UpgradesBrad Copp updated Solar Panel UpgradesRazor updated Admin TC Manager

Small simple addon

mrdecoder
Feb 1, 2022
105 views2 replies

hi uhm i have a noob question
im trying to change something in a plugin
trying to make a button that will open a menu in a different plugin and close the one its in

i think it must be something realy simple but my brain not seem to be working so ill just ask here
///////////////////
so i think i have 2 spots where i can do this

switch (btn) {
case 5:
/////////// i think here maybe /////////
break;

or in a void section that normaly gets opend when clicking that case 5 button

it needs to put in 2 console commands:

CallTopOne
OnMenuClick -1

one is to open playerranks
the other to shutdown menu

2 replies
R
razorfishslMar 9, 2022

Plugins are like people, they are completely independent from each other, unless they have a way to communicate.
if the plugins do not expose an API, then they cannot easily be changed from another plugin.
furthermore... plugins run on the SERVER NOT the client and as such they do not operate from the same perspective as the user

mrdecoderMar 9, 2022

yes, i know but i got it fixed :P

i changed buttons to open and close difrent UI and that worked
any UI of any plugin you can open from any plugin aslong as name is same