Skip to content

Discord Community

Growtopia Namespace ​

Functions ​

FunctionParamsReturnDescriptionExample
growtopia.enter--Enter main door (spawn)growtopia.enter()
growtopia.warpToworld_name:string-Warp to another worldgrowtopia.warpTo("START")
growtopia.notifymsg:string-Show a notificationgrowtopia.notify("Warning!")
growtopia.isOnPosposx:number, posy:numberbooleanCheck if player is on given posgrowtopia.isOnPos(3,2)
growtopia.sendChattext:string, toClient?:boolean-Send chat messagegrowtopia.sendChat("Hello")
growtopia.enterPos--Enter by current positiongrowtopia.enterPos()
growtopia.dropItemitemID:number-Drop 1 of an itemgrowtopia.dropItem(242)
growtopia.getItemIDname:stringnumberGet item ID by namegrowtopia.getItemID("Dirt")
growtopia.tileChangeposx:number, posy:number, value:number-Change a tile valuegrowtopia.tileChange(1,2,3)
growtopia.sendDialogdialog:string-Send dialog as stringgrowtopia.sendDialog("add_textbox|iniey|left|\nadd_quick_exit")
growtopia.setWeatherweatherid:number-Set world weathergrowtopia.setWeather(6)
growtopia.getItemNameid:numberstringGet item name by IDlog(growtopia.getItemName(2))
growtopia.enterGatewayx:number, y:number, n:number-Enter a gateway doorgrowtopia.enterGateway(getLocal().posX//32,getLocal().posY//32,0)
growtopia.checkInventoryitemid:numberbooleanCheck if player has itemlog(growtopia.checkInventory(242))
growtopia.confirmDropItemitemID:number, amount:number-Drop specific amount of itemgrowtopia.confirmDropItem(242,10)
growtopia.checkInventoryCountitemid:numbernumberCount how many items player hasgrowtopia.checkInventoryCount(242)

Join our community for support and updates!