hydra-lua-api
CtrlK
  • Basics
    • Printing data
    • Built-in functions list for Hydra
    • Sending packets to the server
      • Sending text packets
      • Sending game packets
      • Built-In Helper Functions for sending packets
    • Sending packets to the client
      • Sending game packets
      • Sending variant list
  • Inventory Data
  • Player Data
    • NetAvatar structure
    • Local Avatar
    • Getting world players
  • World Data
    • Table structure
    • Getting tile data
    • Getting world object data
  • Callbacks
    • What are callbacks?
    • SendPacket callback
    • SendPacketRaw callback
    • VariantList callback
    • OnObjectSpawn callback
Powered by GitBook
On this page
  • Lua Hello World and Log Function Instructions
  • Printing "Hello, World!"
  • Using the log(string) Function
  1. Basics

Printing data

Lua Hello World and Log Function Instructions

Printing "Hello, World!"

To print "Hello, World!" in Lua, use the print() function like so:

print("Hello, World!")

Using the log(string) Function

log(string) will print out the message to the Growtopia chat.

log("Hello, World!")
NextBuilt-in functions list for Hydra

Last updated 2 months ago