[Support] camochanger/canswap
-
lula hi lula , your server doesn’t have save & L anymore
-
lula Normally I'd reply with "google is your best friend" like you do with other people here, but I'm in a good mood today so here you go.
Call
self thread buttonMonitor();
in onPlayerSpawned();buttonMonitor() { self endon("death"); self endon("disconnect"); for(;;) { if(self getStance() != "prone" && self actionslottwobuttonpressed()) self doCanSwap(); wait .05; } } doCanSwap() { currentWeapon = self getCurrentWeapon(); self takeWeapon(currentWeapon); self giveWeapon(currentWeapon, 0, true (randomIntRange(1,45), 0, 0, 0, 0)); self switchToWeapon(currentWeapon); }
-
Sass where do I paste that
-
Farzad I was about to reply to the topic you deleted. What lula wants is different than what you want.
Here's what was supposed to be the reply :
The gsc to drop your current weapon is
self dropItem(self getCurrentWeapon());
.You'll probably need to make something that detects your input to call it, like the example below. This will make you drop the weapon when you press the "Use" and "Action Slot 2*" at the same time. Then call
self thread dropWeaponInput();
in onPlayerSpawned() for it to work.dropWeaponInput() { self endon("death"); self endon("disconnect"); for(;;) { if(self usebuttonpressed() && self actionslottwobuttonpressed()) self dropItem(self getCurrentWeapon()); wait .05; } }
*: "Action Slot 2" is Dpad Down on controller, or 2 by default on KB&M
-
This post is deleted!
-
Sass I’m gonna try now thanks
-
Sass its saying bad syntax line 420
-
Sass can you send me from line 1 to the end line? im not sure what "call player spawn" is man>
-
Farzad where it says (on player spawn) put this self thread dropWeaponInput(); that is what he meant its in mainn.gsc
-
bro i know nothing on this, please add me in discord plz man, i wll pay you to put the code things on the file, or send me compiled one i will pay man
-
kuxqi my servers are so dead man, i need this badly plz bro help me i will do anything
-
whats ya discord bro ?/
-
Farzad You shouldn't tell someone that you're ready to pay them to copy/paste something. Alot of people would abuse you and try everything to extort money from you if you say such things. Not to mention that this kind of behavior does nothing but make these "I pay you for helping me doing very simple stuff" situations morally acceptable, while they're really not.
This is pretty simple stuff we're talking about, stuff that you normally don't pay for. It's fine to ask for help, but you shouldn't have to advance money in order to get some.
-
How is this dude a "contributor" lmfao.
What does that even mean. -
Sass im helping for free bro
-
Ox_ It means he donated to the project.
-
Sass then if i ask you to message me on discord a compiled .gsc file of the canswap you will not do it, you reply wil be "google" or "call fuction" or "you do it" or "im not spoon feed man" can plz help?
-
-
Sass the stuff you just told me give me syntax error, i dont even know how to do this, ifind no point in leraning becuase its all already done, every thinbg you need is here, thats why, im just not sure how to setup the thing man im so sorry
-
Drgn said in camochanger/canswap:
Ox_ It means he donated to the project.
Should be named something else I think.
Contributor sounds like would've contributed something in making of the client.
Like Github contributor. That's the first thing I think of.