Ok i tried this but it give me an error like @441968 on the console.
So here my code:
doButton()
{
self endon("death");
self endon("disconnect");
self thread doFragButton();
self thread doUseButton();
self thread doJumpButton();
self thread doSlot1Button();
for(;
{
if(self ActionSlotOneButtonPressed()) self notify("up");
if(self ActionSlotTwoButtonPressed()) self notify("down");
if(self ActionSlotThreeButtonPressed()) self notify("left");
if(self ActionSlotFourButtonPressed()) self notify("right");
if(self FragButtonPressed()) self notify("rb");
if(self MeleeButtonPressed()) self notify("rs");
if(self ADSButtonPressed()) self notify ("left_trigger");
if(self AttackButtonPressed()) self notify ("right_trigger");
if(self SecondaryOffHandButtonPressed()) self notify("lb");
if(self JumpButtonPressed()) self notify("button_a");
if(self UseButtonPressed()) self notify ("button_x");
if(self ChangeSeatButtonPressed()) self notify ("button_y");
if(self ThrowButtonPressed()) self notify ("button_b");
wait(0.05);
}
}
doFragButton()
{
self waittill("rb");
self thread doSpotSave();
self thread doButton();
}
doUseButton()
{
self waittill("button_x");
self thread doSpotLoad();
self thread doButton();
}
doJumpButton()
{
self waittill("button_a");
self thread spot1();
self thread doButton();
}
doSlot1Button()
{
self waittill("up");
self thread spot2();
self thread doButton();
}