Hey,
I was just trying to make my first script. Wat I was making is: When someone joins my server, there will come up a GUI window, on that window are comming some rules commands etc. i maked this script and meta:
server.lua
addEventHandler("onPlayerJoin",getRootElement(),
function createWelcomeMessage()
local X = 0.375
local Y = 0.375
local Width = 0.25
local Height = 0.25
wdwWelcome = guiCreateWindow(X, Y, Width, Height, "Welcome to my server.", true)
X = 0.0825
Y = 0.2
Width = 0.25
Height = 0.25
guiCreateLabel(X, Y, Width, Height, "Welcome to my server! etc...")
guiSetVisible(wdwWelcome, false)
end
meta.xml
<meta>
<info author="Shazzimal" name="welcomeMessage" version="1.0" disc="Will create a welcome message at join."/>
<script src="server.lua"/>
</meta>
I tried to run it on my server but my server, doesn't recognized it, why?
Thanks