Jump to content

Anubhav

Members
  • Posts

    2,277
  • Joined

  • Last visited

Everything posted by Anubhav

  1. Damn see the PHP code. HTML code must be thier to create the edit. PHP posts the text in it. Then you use PHP_SDK functions .
  2. Anubhav

    Problems :/

    --[[---------------------------------------------------- -- client script main -- @author Banex -- @update 22/09/2014 ----------------------------------------------------]]-- local sx,sy = guiGetScreenSize() local px,py = 1600,900 local x,y = (sx/px), (sy/py) local Menus = { { "gfx/images/menu.png" }, { "gfx/images/menu2.png" }, { "gfx/images/menu3.png" } } local random = math.random(#Menus) local interiors = { [5] = true,[9] = true,[10] = true,[7] = true,[6] = true } function ShowGUI( hitPlayer ) Background = guiCreateStaticImage(x*200, y*240, 606, 340,table.concat(Menus[random]), false) Button2 = guiCreateStaticImage(370, 80, 130.32, 61.92,"gfx/images/button-low.png",false,Background) Button3 = guiCreateStaticImage(320, 150, 213.96096, 61.9704, "gfx/images/button-mediun.png", false, Background) Button4 = guiCreateStaticImage(380, 220, 100.2, 75.6, "gfx/images/button-big.png", false, Background) Button22 = guiCreateStaticImage(370, 80, 130.32, 61.92,"gfx/images/button-low2.png",false,Background) Button33 = guiCreateStaticImage(320, 150, 213.96096, 61.9704, "gfx/images/button-mediun2.png", false, Background) Button44 = guiCreateStaticImage(380, 220, 100.2, 75.6, "gfx/images/button-big2.png", false, Background) Close2 = guiCreateLabel(578,10,15,15,"✖", false, Background ) Close = guiCreateLabel(580,8,15,15,"✖", false, Background ) Button222 = guiCreateStaticImage(370, 80, 130.32, 61.92,"gfx/images/button.png",false,Background) Button333 = guiCreateStaticImage(320, 150, 213.96096, 61.9704, "gfx/images/button.png", false, Background) Button444 = guiCreateStaticImage(380, 220, 100.2, 75.6, "gfx/images/button.png", false, Background) guiLabelSetColor(Close2,0,0,0) guiSetVisible (Button22, false ) guiSetVisible (Button33, false ) guiSetVisible (Button44, false ) guiSetVisible (Close2, false ) showCursor( true ) addEventHandler("onClientGUIClick", Close, function() showCursor( false ) guiSetVisible(Background, false) end ) addEventHandler("onClientGUIClick", Close2, function() showCursor( false ) guiSetVisible(Background, false) end ) end addEvent("showGUI",true) addEventHandler("showGUI",getRootElement(),ShowGUI)
  3. Anubhav

    Problems :/

    [lua] addEventHandler("onClientResourceStart", resourceRoot, function() Background = guiCreateStaticImage(x*200, y*240, 606, 340,table.concat(Menus[random]), false) end )
  4. guiCreateEdit? should i make a edit box and hide it? behind the image of .... ... ... login edit box? edit1 = guiCreateEdit (...) guiSetAlpha ( edit1, 0) This will make the edit box transparent. OMG YES! I had used a event ( can't remember ) with was when you press a key it will type. So why not try it? You can use it by images and positions.
  5. Replace the image as I said. Using guiSetVisible keep changing it.
  6. guiCreateEdit guiGetText guiSetAlpha
  7. 1. You could get x,y or a seperate image. The parent should be the element! 2. You can replace images. EDIT: You can make a hidden edit!
  8. Anubhav

    Gxz^ Mapping

    Awesome! Good luck!
  9. I bealive that the title say's scripter/s needed? and i'm in the scripting section. This scripting section is for help. Checkout server board. There is a sub-board looking for staff is correct.
  10. I tried debugging. It outputs fine. The GUI has too many false. The problem is it doesn't load the XML file and set the text properly.
  11. (facepalm). What if a player did: /setsoundistance "5" !
  12. No description: https://community.multitheftauto.com/ind ... s&id=10139 DONE
  13. Anubhav

    Hi

    You should pay someone so he can make it!
  14. Anubhav

    Hi

    Not a request section at all!
  15. Tostring should be there, as it is a number, It should work actually. Be sure of the location and level.
  16. Anubhav

    Server Time

    You can't uncompile it. Its 'de-compile' which is not possible. Try to add the part in a new file something.lua and compile it copy the data inside it paste it at last of script. Maybe it works?
  17. -- Server side exports.scoreboard:addScoreboardColumn("Level",getRootElement(),1,40,'Level') function scoreLevel () local account = getPlayerAccount(source) local Level = getElementData(localPlayer,"Level") or 0 if isGuestAccount ( account ) then setElementData(source, "Level","ranks\0.png") else setElementData(source, "Level", "resourceName:ranks\\"..tostring(Level)..".png" ) end addEventHandler("onPlayerSpawn", getRootElement(), scoreLevel) addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),function() call(getResourceFromName("scoreboard"),"addScoreboardColumn","Level", getRootElement(), 1, 40) end ) end
  18. Not sure. -- Server side exports.scoreboard:addScoreboardColumn("Level",getRootElement(),1,40,'Level') function scoreLevel () local account = getPlayerAccount(source) local Level = getElementData(localPlayer,"Level") or 0 if isGuestAccount ( account ) then setElementData(source, "Level","ranks\0.png") else setElementData(source, "Level", "ranks\\"..tostring(Level)..".png" ) end addEventHandler("onPlayerSpawn", getRootElement(), scoreLevel) addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),function() call(getResourceFromName("scoreboard"),"addScoreboardColumn","Level", getRootElement(), 1, 40) end ) end
  19. No problem, but don't do that mistake again. You should always read the script carefully. Don't reply please. Topic should be locked as problem is solved.
  20. https://community.multitheftauto.com/ind ... s&id=10146 Duplicate, see Al3grabs script and this. He din't even give credits, he just edited the gui and done. Compare the code. DONE
  21. No need to argue. Please don't reply, you should understand your mistake. If you use getPlayerName with "ki" it will not work. getPlayerName needs a element which is a player not player's name. Check out wiki. He defined ThePlayer with the function which returns the player name so you can use getPlayerName on it. Your arguement was wrong. You should've used ThePlayer.
  22. Anubhav

    [A-Team]

    Oh thanks for the comment!
×
×
  • Create New...