Jump to content

Scripting


Recommended Posts

Posted

How can you add scripts, like when I see posts from the "Scripts" Section there like Numbers on the left and like addeventhandler and shit. Can someone please teach me how to add scripts like that please?

Posted

He's saying you need to use the lua-tags here.

Also known as [ lua ][ /lua ], remember to remove the spaces between the shutters and the names.

Posted
  
addEventHandler("onPlayerJoin", getRootElement(), 
function() 
-- blablalba 
end) 
  

is the same as:

[ lua]

addEventHandler("onPlayerJoin", getRootElement(),

function()

-- blablalba

end)

[ /lua]

dont forget to remove the space after the '['

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...