Hi, i'm back, I edited a little so it now looks like this;
--Client side: Only you can see it opening
--Server side: Everybody can see it opening
-- Create the marker at the middle of GTA
gate = createObject(980, 1119.2196044922, -1161.8154296875, 25.339630126953, 0, 0, 0) -- create the gate when the resource starts
function moveGate() -- create the moving gate function
moveObject(gate, 1000, 1, 1119.2196044922, -1161.8154296875, 23.339630126953, 0, 0, 0) -- move it 5 units higher in 1 second (1000ms)
setTimer(moveObject, 5000, 1, gate, 1119.2196044922, -1161.8154296875, 25.339630126953, 0, 0, 0) -- move it back after 3 seconds
end
addCommandHandler("meep", moveGate)
and I removed the from the meta.xml and replaced it with
Anyway, now I managed to get the script working on the gate, but the gate disappears and never comes back. It doesn't move a little, it just completely disappear so I have to restart it all the time. Any thoughts?