Hey Leute ich habe folgendes Problem:
der script ist clientseitig und wenn ich den marker berühre passiert gar nix. woran liegt das ?
Lua
local eventdjmarker = createMarker(1481.5, -1620.6, 13.2, 'cylinder', 1.0, 200, 50, 0, 150)
function eventdj( hitElement, matchingDimension )
GUIEditor.window[1] = guiCreateWindow(637, 320, 401, 335, "Hyperpower sound - panel", false)guiWindowSetSizable(GUIEditor.window[1], false)showCursor = trueGUIEditor.button[2] = guiCreateButton(188, 62, 78, 21, "Aus", false, GUIEditor.window[1])GUIEditor.button[3] = guiCreateButton(188, 34, 78, 21, "An", false, GUIEditor.window[1])GUIEditor.label[3] = guiCreateLabel(29, 37, 97, 40, "Lichtstrahlanlage", false, GUIEditor.window[1])GUIEditor.label[4] = guiCreateLabel(27, 109, 100, 42, "Nebelmaschine", false, GUIEditor.window[1])GUIEditor.button[4] = guiCreateButton(188, 102, 78, 21, "An", false, GUIEditor.window[1])GUIEditor.button[5] = guiCreateButton(188, 129, 78, 21, "Aus", false, GUIEditor.window[1])GUIEditor.memo[4] = guiCreateMemo(28, 228, 238, 40, "", false, GUIEditor.window[1])GUIEditor.label[5] = guiCreateLabel(33, 204, 121, 21, "stream url", false, GUIEditor.window[1])GUIEditor.button[6] = guiCreateButton(282, 228, 96, 37, "Play", false, GUIEditor.window[1])GUIEditor.label[6] = guiCreateLabel(33, 291, 81, 29, "lichtanlage", false, GUIEditor.window[1])GUIEditor.button[7] = guiCreateButton(128, 287, 84, 36, "An",false) GUIEditor.window[1])GUIEditor.button[8] = guiCreateButton(222, 289, 84, 36, "aus", false, GUIEditor.window[1])
endaddEventHandler( "onMarkerHit", eventdjmarker, MarkerHit )