Guten Tag!
Ich habe ein Problem, welches das ist, das ich in meinem Script ein Tutorial ist. Heißt man ist in einem Interior, läuft Marker ab etc... Aber nachdem man Rausgeht soll etwas kommen. Und das tuht es nicht, und da Frag ich euch, warum das nicht angezeigt wird. Habe das in der Register_window.lua eingetragen denn das was gezeigt werden sollte, ist das:
Lua
function showBeginGui_func()
local tutorialgui = {}
tutorialgui._placeHolders = {}
local screenWidth, screenHeight = guiGetScreenSize()
local windowWidth, windowHeight = 500, screenHeight
local left = screenWidth/2 - windowWidth/2
local top = screenHeight/2 - windowHeight/2
tutorialgui["_root"] = guiCreateStaticImage( screenWidth - screenWidth, screenHeight - screenHeight, screenHeight + screenHeight, 85, "images/BlackScreen.png", false )
tutorialgui["_root2"] = guiCreateStaticImage( screenWidth / 4 , screenHeight - screenHeight , screenWidth / 2 , 85 , "images/logo.png", false )
tutorialgui["_root3"] = guiCreateStaticImage( screenWidth - screenWidth, screenHeight - 150, screenHeight + screenHeight, 150, "images/BlackScreen.png", false )
tutorialgui["Info"] = guiCreateLabel( screenWidth / 4, 20, screenWidth / 2, 20, "", false, tutorialgui["_root3"] )
guiSetFont ( tutorialgui["Info"], "default-bold-small" )
tutorialgui["Info1"] = guiCreateLabel( screenWidth / 4, 50, screenWidth / 2, 20, "", false, tutorialgui["_root3"] )
guiSetFont ( tutorialgui["Info1"], "default-bold-small" )
tutorialgui["Info2"] = guiCreateLabel( screenWidth / 4, 80, screenWidth / 2, 20, "", false, tutorialgui["_root3"] )
guiSetFont ( tutorialgui["Info2"], "default-bold-small" )
tutorialgui["Info3"] = guiCreateLabel( screenWidth / 4, 110, screenWidth / 2, 20, "", false, tutorialgui["_root3"] )
guiSetFont ( tutorialgui["Info3"], "default-bold-small" )
setCameraMatrix ( -2500.7185058594, 807.83435058594, 59.346332550049, -2439.8000488281, 748.02722167969, 7.2691040039063 )
playSoundFrontEnd ( 40 )
guiSetText ( tutorialgui["Info"], "Noobspawn" )
guiSetText ( tutorialgui["Info1"], "Herzlich Willkommen auf Reallife." )
guiSetText ( tutorialgui["Info2"], "Als erste ist es empfehlenswert, einen Führerschein zu machen." )
guiSetText ( tutorialgui["Info3"], "" )
setTimer ( setCameraMatrix, 10000, 1, -2681.9111328125, 376.07522583008, 34.546997070313, -2772.6770019531, 376.4345703125, -7.4224624633789 )
setTimer ( playSoundFrontEnd, 10000, 1, 40 )
setTimer ( guiSetText, 10000, 1, tutorialgui["Info"], "Rathaus" )
setTimer ( guiSetText, 10000, 1, tutorialgui["Info1"], "Hier kannst du dir die alle Führerscheine erwerben und," )
setTimer ( guiSetText, 10000, 1, tutorialgui["Info2"], "nach verfügbaren Jobs ausschauhalten. Aber beachte für bestimmte Jobs." )
setTimer ( guiSetText, 10000, 1, tutorialgui["Info3"], "brauchst du bestimmte Voraussetzungen." )
setTimer ( setCameraMatrix, 65000, 1, -2031.8444824219, 222.6450958252, 53.24552154541, -1990.2292480469, 138.05453491211, 19.889717102051 )
setTimer ( playSoundFrontEnd, 65000, 1, 40 )
setTimer ( guiSetText, 65000, 1, tutorialgui["Info"], "Bahnhof" )
setTimer ( guiSetText, 65000, 1, tutorialgui["Info1"], "Hier spielt sich das hauptgeschehen auf unserem Server ab," )
setTimer ( guiSetText, 65000, 1, tutorialgui["Info2"], "hier trifft man sich. Zu Events oder sonstigem." )
setTimer ( guiSetText, 65000, 1, tutorialgui["Info3"], "Dort kannst du dein Auto tunen oder reparieren bei den verschiedenen Werkstätten." )
setTimer ( triggerServerEvent, 85000, 1, "gameBeginGuiShow", lp, lp )
setTimer ( guiSetVisible, 85000, 1, tutorialgui["_root"], false )
setTimer ( guiSetVisible, 85000, 1, tutorialgui["_root2"], false )
setTimer ( guiSetVisible, 85000, 1, tutorialgui["_root3"], false )
end
addEvent ( "setPlayerInTutorial", true )
addEventHandler ( "setPlayerInTutorial", getRootElement(), showBeginGui_func )
Alles anzeigen
MFG