Hallo liebe Community!
Ich habe ein Problem mit dem GUI. Und zwar wenn ich in den Marker gehe taucht das GUI nicht auf. Hier das Script:
Lua
skin = {
button = {},
window = {}
}
local skin_marker = createMarker ( 0, 0, 2,"cylinder", 1.2, 255, 255, 255, 125 )
function window ()
skin.window[1] = guiCreateWindow(5, 4, 1265, 69, "", false)
guiWindowSetSizable(skin.window[1], false)
skin.button[1] = guiCreateButton(1062, 24, 95, 35, "Kaufen", false, skin.window[1])
skin.button[2] = guiCreateButton(42, 26, 101, 33, "Abbrechen", false, skin.window[1])
end
addEventHandler("onClientResourceStart", window)
function window ()
guiSetVisible(skin.window[1], true)
showCursor(true)
end
addEventHandler("onMarkerHit",skin_marker,window)
Alles anzeigen
Debugscript 3 sagt dazu:
Code
WARNING: Reallife\shops\skin_c:22: Bad argument @ 'addEventHandler' [Expected element at argument 2,got function]
MfG
leon355i