-
Posts
1,646 -
Joined
-
Last visited
Everything posted by CapY
-
No errors , but script doesnt works . Client: GUIEditor_Label = {} function lol () GUIEditor_Label[1] = guiCreateLabel(0.4063,0.3779,0.1531,0.209,"Welcome to our server ! Server is under construction at the moment , but feel free to play on it , expect more gamemodes from us , more features and much , much more ...",true) guiLabelSetColor(GUIEditor_Label[1],0,255,0) guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",true) guiSetFont(GUIEditor_Label[1],"clear-normal") fadeCamera(false,1.0) setTimer( fadeCamera, 10000,1,true) setTimer ( guiSetVisible, 10000, 1, GUIEditor_Label[1], false) triggerClientEvent("blurFade",getRootElement(),lol) end Server: local fadeCamera = true function fade() fadeCamera(false,10.0) end addEventHandler("onPlayerJoin",getRootElement(),fade) addEvent( "blurFade",true ) addEventHandler("blurFade",getRootElement(),fade)
-
Okay, but fadeCamera doesnt works still on join , it works just when i restart resource . GUIEditor_Label = {} fadeCamera = true function lol () GUIEditor_Label[1] = guiCreateLabel(0.4063,0.3779,0.1531,0.209,"Welcome to our server ! Server is under construction at the moment , but feel free to play on it , expect more gamemodes from us , more features and much , much more ...",true) guiLabelSetColor(GUIEditor_Label[1],0,255,0) guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",true) guiSetFont(GUIEditor_Label[1],"clear-normal") fadeCamera(true,5.0) setTimer( fadeCamera, 10000,1,true) setTimer ( guiSetVisible, 10000, 1, GUIEditor_Label[1], false) end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),lol)
-
Weather is normal like i see and , that lights are corona markers placed all around the map.
-
Wiki . https://wiki.multitheftauto.com/wiki/Cli ... _functions
-
Dont works anyway , forget about it .
-
Create one more file in the same folder in lua extension
-
and rotating function will be : setObjectRotation
-
Encode it to UTF-8 and then try to compile.
-
FadeCamera dont works when player joins. EDIT: Why everytime when i restart any resource that label shows up ?
-
Can you show one example with more rows , without same memo description ?
-
Bad argument on line 12 Here : local screenWidth,screenHeight = guiGetScreenSize() GUIEditor_Label = {} function lol () GUIEditor_Label[1] = guiCreateLabel(0.4063,0.3779,0.1531,0.209,"Welcome to our server ! Server is under construction at the moment , but feel free to play on it , expect more gamemodes from us , more features and much , much more ...",true) guiLabelSetColor(GUIEditor_Label[1],0,255,0) guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",true) guiSetFont(GUIEditor_Label[1],"clear-normal") fadeCamera(lol, false, 1.0,0,0,0) setTimer( fadeCamera, 10000, 1,GUIEditor_Label[1], false) setTimer ( guiSetVisible, 10000, 1, GUIEditor_Label[1], false) end addEventHandler("onClientResourceStart",getRootElement(), lol )
-
Here it is : GUIEditor_Window = {} GUIEditor_Memo = {} GUIEditor_Memo1 = {} GUIEditor_Grid = {} lol = {} GUIEditor_Window[1] = guiCreateWindow(0.207,0.1426,0.607,0.5605,"Help Manager",true) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) GUIEditor_Grid[1] = guiCreateGridList(14,52,121,485,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(lol,2) guiGridListAddColumn(GUIEditor_Window[1],"Description",0.2) for i = 1, 2 do guiGridListAddRow(GUIEditor_Window[1]) end lol = guiGridListSetItemText(GUIEditor_Grid[1],0,1,"FAQ",false,true) GUIEditor_Memo[1] = guiCreateMemo(139,54,601,484," Here are recently asked questions by other players\n\n\nQ:What type of server is this ?\nA:It's Freeroam.\n\n\nQ: For what FG stands for ? \nA: It's stand for Friend Gang\n\n\nQ: Where i can visit your site ? \nA: Site link is Fggaming.forumcroatian.com/\n",false,GUIEditor_Window[1]) guiGridListSetItemText(GUIEditor_Grid[1],1,1,"Glue",false,true) guiSetSizable(GUIEditor_Window, false) guiSetMovable(GUIEditor_Window, false) guiMemoSetReadOnly(GUIEditor_Memo[1],false) GUIEditor_Memo1[1] = guiCreateMemo(139,54,601,484,"Test, test",false,GUIEditor_Window[1]) end -- BIND F9 function onresourceStart () bindKey ("F9", "down", showUserPanel) guiSetVisible (GUIEditor_Window[1], false) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onresourceStart) function showUserPanel () local playerName = getPlayerName ( getLocalPlayer() ) if guiGetVisible (GUIEditor_Window[1]) then guiSetVisible (GUIEditor_Window[1], false) showCursor (false) removeEventHandler( "onClientGUIClick", GUIEditor_Grid[1], showUserPanel ) else guiSetVisible (GUIEditor_Window[1], true) showCursor (true) addEventHandler( "onClientGUIClick", GUIEditor_Window[1], showUserPanel ) end end
-
local screenWidth,screenHeight = guiGetScreenSize() GUIEditor_Label = {} function lol () GUIEditor_Label[1] = guiCreateLabel(0.4063,0.3779,0.1531,0.209,"Welcome to our server ! Server is under construction at the moment , but feel free to play on it , expect more gamemodes from us , more features and much , much more ...",true) guiLabelSetColor(GUIEditor_Label[1],0,255,0) guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",true) guiSetFont(GUIEditor_Label[1],"clear-normal") setTimer ( GUIEditor_Label[1], 5000, 1, guiSetVisible, false) end addEventHandler("onClientResourceStart",getRootElement(), lol ) EDIT : I FIXED IT
-
Lol now it starts on resource start and it's not toggleable with F9 .
-
GUIEditor_Window = {} GUIEditor_Memo = {} GUIEditor_Memo1 = {} GUIEditor_Grid = {} lol = {} GUIEditor_Window[1] = guiCreateWindow(0.207,0.1426,0.607,0.5605,"Help Manager",true) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) GUIEditor_Grid[1] = guiCreateGridList(14,52,121,485,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(lol,2) guiGridListAddColumn(GUIEditor_Window[1],"Description",0.2) for i = 1, 2 do guiGridListAddRow(GUIEditor_Window[1]) end lol = guiGridListSetItemText(GUIEditor_Grid[1],0,1,"FAQ",false,true) GUIEditor_Memo[1] = guiCreateMemo(139,54,601,484," Here are recently asked questions by other players\n\n\nQ:What type of server is this ?\nA:It's Freeroam.\n\n\nQ: For what FG stands for ? \nA: It's stand for Friend Gang\n\n\nQ: Where i can visit your site ? \nA: Site link is Fggaming.forumcroatian.com/\n",false,GUIEditor_Window[1]) guiGridListSetItemText(GUIEditor_Grid[1],1,1,"Glue",false,true) guiSetSizable(GUIEditor_Window, false) guiSetMovable(GUIEditor_Window, false) guiMemoSetReadOnly(GUIEditor_Memo[1],false) GUIEditor_Memo1[1] = guiCreateMemo(139,54,601,484,"Test, test",false,GUIEditor_Window[1]) end -- BIND F9 function onresourceStart () bindKey ("F9", "down", showUserPanel) guiSetVisible (GUIEditor_Window[1], false) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onresourceStart) function showUserPanel () local playerName = getPlayerName ( getLocalPlayer() ) if guiGetVisible (GUIEditor_Window[1]) then guiSetVisible (GUIEditor_Window[1], false) showCursor (false) removeEventHandler( "onClientGUIClick", GUIEditor_Grid[1], showUserPanel ) else guiSetVisible (GUIEditor_Window[1], true) showCursor (true) addEventHandler( "onClientGUIClick", GUIEditor_Window[1], showUserPanel ) end end By the way , i got this error on 25. line ' ' expected near end
-
:14: Bad Argument @ 'setTimer' [Expected function at argument 1, got nil]
-
I already done this , but that will not work , because like you said i dont have dxDrawText . Here : local rootElement = getRootElement() local screenWidth,screenHeight = guiGetScreenSize() GUIEditor_Label = {} GUIEditor_Label[1] = guiCreateLabel(0.4063,0.3779,0.1531,0.209,"Welcome to our server ! Server is under construction at the moment , but feel free to play on it , expect more gamemodes from us , more features and much , much more ...",true) guiLabelSetColor(GUIEditor_Label[1],0,255,0) guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",true) guiSetFont(GUIEditor_Label[1],"clear-normal") addEventHandler("onPlayerJoin", rootElement,GUIEditor_Label[1]) end) setTimer ( GUIEditor_Label[1], guiSetVisible(GUIEditor_Label, false ,rootElement) end , 5000 , 1 ) Yep and there is an error on 12 line , but that will not work anyway.
-
The same thing like with logo , means label starts onPlayerJoin and disappears for 5 secs.
-
Script fixed a bit , but still when i click anywhere on the window it gets closed . Here : GUIEditor_Window = {} GUIEditor_Memo = {} GUIEditor_Memo1 = {} GUIEditor_Grid = {} lol = {} GUIEditor_Window[1] = guiCreateWindow(0.207,0.1426,0.607,0.5605,"Help Manager",true) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) GUIEditor_Grid[1] = guiCreateGridList(14,52,121,485,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(lol,2) guiGridListAddColumn(GUIEditor_Grid[1],"Description",0.2) for i = 1, 2 do guiGridListAddRow(GUIEditor_Grid[1]) end lol = guiGridListSetItemText(GUIEditor_Grid[1],0,1,"FAQ",false,true) GUIEditor_Memo[1] = guiCreateMemo(139,54,601,484," Here are recently asked questions by other players\n\n\nQ:What type of server is this ?\nA:It's Freeroam.\n\n\nQ: For what FG stands for ? \nA: It's stand for Friend Gang\n\n\nQ: Where i can visit your site ? \nA: Site link is Fggaming.forumcroatian.com/\n",false,GUIEditor_Window[1]) guiGridListSetItemText(GUIEditor_Grid[1],1,1,"Glue",false,true) guiSetSizable(GUIEditor_Window, false) guiSetMovable(GUIEditor_Window, false) guiMemoSetReadOnly(GUIEditor_Memo[1],false) GUIEditor_Memo1 = guiCreateMemo(139,54,601,484,"Test, test",false,GUIEditor_Window[1]) end -- BIND F9 function onresourceStart () bindKey ("F9", "down", showUserPanel) guiSetVisible (GUIEditor_Window[1], false) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onresourceStart) function showUserPanel () getVisible = guiGetVisible (GUIEditor_Window[1]) playerName = getPlayerName ( getLocalPlayer() ) if (getVisible == true) then guiSetVisible (GUIEditor_Window[1], false) showCursor (false) elseif (getVisible == false) then guiSetVisible (GUIEditor_Window[1], true) showCursor (true) addEventHandler( "onClientGUIClick", GUIEditor_Grid[1], showUserPanel ) end end Error on :71: @addEventHandler: 'onClientGUIClick' with this function is already handled Help anybody ?
-
Is it possible to disable label too ?
-
Rows in gridlist are not selectable , when i click on one row window closes. GUIEditor_Window = {} GUIEditor_Memo = {} GUIEditor_Memo1 = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(0.207,0.1426,0.607,0.5605,"Help Manager",true) GUIEditor_Grid[1] = guiCreateGridList(14,52,121,485,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) guiGridListAddColumn(GUIEditor_Grid[1],"Description",0.2) for i = 1, 2 do guiGridListAddRow(GUIEditor_Grid[1]) end guiGridListSetItemText(GUIEditor_Grid[1],0,1,"FAQ",false,true) GUIEditor_Memo[1] = guiCreateMemo(139,54,601,484," Here are recently asked questions by other players\n\n\nQ:What type of server is this ?\nA:It's Freeroam.\n\n\nQ: For what FG stands for ? \nA: It's stand for Friend Gang\n\n\nQ: Where i can visit your site ? \nA: Site link is Fggaming.forumcroatian.com/\n",false,GUIEditor_Window[1]) guiGridListSetItemText(GUIEditor_Grid[1],1,1,"Glue",false,truer) GUIEditor_Memo1 = guiCreateMemo(139,54,601,484,"",false,GUIEditor_Window[1]) end -- BIND THE TOUCH F9 function onresourceStart () bindKey ("F9", "down", showUserPanel) guiSetVisible (GUIEditor_Window[1], false) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onresourceStart) function showUserPanel () getVisible = guiGetVisible (GUIEditor_Window[1]) playerName = getPlayerName ( getLocalPlayer() ) if (getVisible == true) then guiSetVisible (GUIEditor_Window[1], false) showCursor (false) end if (getVisible == false) then guiSetVisible (GUIEditor_Window[1], true) showCursor (true) addEventHandler( "onClientGUIClick", GUIEditor_Grid[1], showUserPanel ) end end
-
Bump* I've never seen that error and then i dont know how to fix it. local root = getRootElement() addEventHandler("onPlayerLogin", root, function(thePlayer,current_account) outputChatBox(getPlayerName(thePlayer).." has logged into"..getAccountName(current_account), root,255,0,0, true) end) attempt to concatenate a boolean value