is that the whole code?
if so you need a handler to call your functions
example:
onResourceStart, getRootElement(),
function()
local x,y,z = getElementPosition( source )
createObject ( 2993, x, y, z, 120, 0, 0 )
outputChatBox("Party started", source, 0, 255, 0, true)
end
or another possibility could be to name the function and call it that way
example:
function makeStuff()
local x,y,z = getElementPosition( source )
createObject ( 2993, x, y, z, 120, 0, 0 )
outputChatBox("Party started", source, 0, 255, 0, true)
end
onResourceStart, getRootElement(), makeStuff