
Karuzo
Members-
Posts
1,213 -
Joined
-
Last visited
Everything posted by Karuzo
-
Well no sorry that was just a mod ^^ Btw i want to start a function after 50 seconds do i have to same justl ike above ? i have it now : function start_cl_resource() setTimer(open_log_reg_pannel,50000,1) end addEventHandler("onClientPlayerJoin",getResourceRootElement(getThisResource()),start_cl_resource) But that doesnt work.
-
Thank you @.:HyPeX:.: it works now , BUT, it causes extremeeeely laggs if the loginpanel pops out. and i can't press any button also...
-
Well that doesn't work also .
-
I think that doesn't change anything if he'S tunisian or not -.- MTA can't do anything. Sorry.
-
MTA won't close this server. You should have better protect your scripts...
-
Hey Guys, i want to set a Timer to show the Login-Panel after 50 Seconds. function HandleTheRendering ( ) setTimer(HandleTheRendering,50000,1) addEventHandler("onClientRender", getRootElement(), renderDisplay) -- Keep everything visible with onClientRender. end addEventHandler("onClientPlayerJoin", getRootElement(), HandleTheRendering) But it won't work btw no errors.
-
Just show us the whole script please.
-
try this : bindKey("b","down", toggLight) i dont know if toggleLight is used to switch it off also , but if it is youll need an if i think . Ex : if switched == on then --- if switched == off then -- Greets, Sent from my Phone.
-
What are you talking about ReX? Hes probably talking about bindKey. @dewu: just use the functiom bindKey , example : bindKey("b", "down", function) Just put this under your flashlight function and change "function" in the bindKey Event above to your functionname. Sent from my phone.
-
omg!!!! Thank you Solid, youre the best!
-
all of them but if its a problem , just the main GUI (:
-
k thank you very much
-
Thank you for your help SolidSnake14, but when i replace it and restart freeroam the panel pops up before i pressed f1
-
Hi, so i have found this example in the wiki : function guiFade( gui, state ) if state == "in" then -- This state will fade IN the GUI fadeIn = setTimer(guiFade, 50, 1, gui, state) -- We loop the function to make it lower the alpha each 50 ms alpha = guiGetAlpha(gui) -- We get the GUI's actual alpha after each loop guiSetAlpha(gui, alpha - 0.1) -- We set the GUI's actual alpha after each loop if alpha == 0 then -- If the loop reached "0"... guiSetVisible(gui, false) -- We set the GUI visibility to 0 so it won't be clickable or editable killTimer(fadeIn) -- ... We kill the timer fadeIn = nil -- And to make sure it doesn't exist anymore, we set it to nil end elseif state == "out" then -- This state will fade OUT the GUI guiSetVisible(gui, true) -- Since the GUI will still be click-able, we'll set it's visibility to "false" fadeOut = setTimer(guiFade, 50, 1, gui, state) -- We loop the function to make it higher the alpha each 50 ms alpha = guiGetAlpha(gui) -- We get the GUI's actual alpha after each loop guiSetAlpha(gui, alpha + 0.1) -- We set the GUI's actual alpha after each loop if alpha == 1 then -- If the loop reached "1"... killTimer(fadeOut) -- ... We kill the timer fadeOut = nil -- And to make sure it doesn't exist anymore, we set it to nil end end end but i dont know the main window from freeroam, i just don't understand the structure of the freeroam gui ....
-
No one has an idea ?
-
Hi Guys, i want to let the freeroam f1panel fading in and out, but i dont know how .. i know i have to do it with the Alpha of the GUI but the freeroam Panel is written in OOP and not in LUA ( as much as i seen it. ) So have could i make this ?
-
Edited it , now it checks it , and to the godresource : i defined it above, godresource is the resource which the script is in... gonna try it now out. godresource=getResourceRootElement(getThisResource()) function toggleGodMode(thePlayer) if isTransferBoxActive() == true then setTimer(toggleGodMode,2000,1) setElementData(thePlayer,"invincible",true) outputChatBox("--TEXT--",thePlayer,0,255,0) else setElementData(thePlayer,"invincible",false) outputChatBox("--TEXT--",thePlayer,0,255,0) end end addEventHandler("onClientResourceStart",godresource,toggleGodMode)
-
godresource=getResourceRootElement(getThisResource()) function toggleGodMode(thePlayer) if isTransferBoxActive() == true then setElementData(thePlayer,"invincible",true) outputChatBox("--TEXT--",thePlayer,0,255,0) else setElementData(thePlayer,"invincible",false) outputChatBox("--TEXT--",thePlayer,0,255,0) end end addEventHandler("onClientResourceStart",godresource,toggleGodMode) Would this work ?
-
Hey Guys, i have pulled out my old godmode script out , but i want to add that the people who are downloading have godmode... I didn't found anything on the wiki , such as functions or an event... My Code : function toggleGodMode(thePlayer) local account = getPlayerAccount(thePlayer) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) ) then if getElementData(thePlayer,"invincible") then setElementData(thePlayer,"invincible",false) outputChatBox("--TEXT--",thePlayer,0,255,0) else setElementData(thePlayer,"invincible",true) outputChatBox("--TEXT--",thePlayer,0,255,0) end end end addCommandHandler("godmode",toggleGodMode)
-
Thank you it worked
-
Ye from ByServ , ok thank you i'll try it out.
-
No lol, im using a bought Server by ByServ, the MySQL data is correct.
-
Hey Guys i have found a savesystem with mysql on community.multitheftauto.com , but i wanted to add the row player , so i did , mysql import works fine , but if i start the ressource , it says Trouble. I have loaded the Module and i used localhost and 127.0.0.1 .... Error : Unable to connect to mysql: (2002) Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
-
No one knows the ID ? Or how can i get this ID ?