Uhm... you forgot the addEventHandler function, trajik
But I guess you want it in a command, right? Then it should look something like this:
function command_makeStuff(player)
local x, y, z = getElementPosition(player)
createObject(2993, x, y, z, 120, 0, 0)
outputChatBox("Party started", player, 0, 255, 0, true)
end
addCommandHandler("command", command_makeStuff)