Search Docs...
⌘K
Farm Eggs
Docs
Blog
crackalka
Discord
GitHub
npm
Farm Eggs
Docs
Blog
crackalka
Discord
GitHub
npm
Documentation
Introduction
New Here?
Get Started
Using Node
Using the Browser
Building Your First Bot
Games
Getting Started with Games
Joining Your First Game
Game Information
Players
Chatting
Extra Game Utilities
Authentication
Getting Started with Auth
Anonymous Authentication
Email & Password Authentication
Refresh Token Authentication
Account Properties
Account Methods
Constants
Constant List
Gun Data
Scraped Data
Extras
Gun IDs
Intents
Enum List
Bot Params
Game Admin Tools
Dispatches
Action List
bootPlayer
chat
fire
gameOptions
goToAmmo
goToCoop
goToGrenade
goToPlayer
goToSpatula
lookAt
lookAtPos
melee
move
pause
reload
reportPlayer
resetGame
saveLoadout
spawn
swapWeapon
switchTeam
throwGrenade
Hooks
Hook Info
authFail hook
authSuccess hook
balanceUpdate hook
banned hook
botJoin hook
challengeComplete hook
chat hook
close hook
gameForcePause hook
gameOptionsChange hook
gameReady hook
gameReset hook
gameStateChange hook
grenadeExploded hook
mapLoad hook
leave hook
packet hook
pathfindComplete hook
pathfindError hook
pingUpdate hook
playerBeginStreak hook
playerChangeCharacter hook
playerChangeGun hook
playerCollectAmmo hook
playerCollectGrenade hook
playerDamage hook
playerDeath hook
playerEndReload hook
playerEndStreak hook
playerEnterZone hook
playerFire hook
playerJoin hook
playerLeave hook
playerLeaveZone hook
playerMelee hook
playerMove hook
playerPause hook
playerRespawn hook
playerRotate hook
playerStartReload hook
playerSwapWeapon hook
playerSwitchTeam hook
playerThrowGrenade hook
respawnDenied hook
rocketHit hook
selfShieldHit hook
selfShieldLost hook
sessionExpired hook
spawnItem hook
tick hook
Internal
API Class
Comm Utilities
Map Utilities
WebAssembly Modules
swapWeapon
Example Usage
bot.
emit
(
'swapWeapon'
);
// legacy dispatches: bot.dispatch(new SwapWeaponDispatch());
Checks
The bot must be playing the game
The bot must not be reloading, already swapping between the primary/secondary, or using the melee
Page Navigator
swapWeapon
Example Usage
bot.
emit
(
'swapWeapon'
);
// legacy dispatches: bot.dispatch(new SwapWeaponDispatch());
Checks
The bot must be playing the game
The bot must not be reloading, already swapping between the primary/secondary, or using the melee
ESC
hold up! yolkbot's services server is verifying you with cloudflare turnstile...wait around 15 seconds & we'll unlock the form.