Jump to content

Welcome to Gaming On Steroids Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account
Photo

[Solved] I didn't understand the callback API.

External callback-api

  • Please log in to reply
2 replies to this topic

#1
MonkeyKid

MonkeyKid

    Advanced Member

  • Members
  • 112 posts
  • LocationBrazil

How do I register a callback? For example, OnLoad?

 

Nevermind, I figured it out, it's done via Callback.Add(...)


  • 0

#2
Feretorix

Feretorix

    Administrator

  • Administrators
  • 3,248 posts

You can use the OnLoad callback without registering it too.

 

function OnLoad()
print("HELLO FROM MY SCRIPT")
end

  • 1

#3
MonkeyKid

MonkeyKid

    Advanced Member

  • Members
  • 112 posts
  • LocationBrazil

Oh nice to know! Thank you.


  • 0





Also tagged with one or more of these keywords: External, callback-api

2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users