Jump to content

Aristates

Members
  • Posts

    52
  • Joined

  • Last visited

Everything posted by Aristates

  1. addEventHandler("onClientResourceStart", root, function() triggerServerEvent("resourceStart", getLocalPlayer()) end ) addEvent("showGui") addEventHandler("showGui", root, function(msg) showCursor(true) guiSetInputEnabled(true) loadLoginPanel() outputChatBox(msg) end ) --- # Server Side addEvent("resourceStart", true) addEventHandler("resourceStart", root, function(player, local) msg = getResourceName(local)..":This is my Code is Succes" triggerClientEvent(player, "showGui", msg, player) end )
  2. Hey. ffs login panel reworking.
  3. function open_menu(plr, r_type) initialize_menu_choices() guiSetVisible(win_menu, true) showCursor(true) end addEvent("SAEGfastfood.gui.show",true) addEventHandler("SAEGfastfood.gui.show", root, open_menu)
  4. guiSetText(win_menu, menu_choices[r_type]["title"]) value is not defined in errors.
  5. theTeam , theSpawnPont is not defined. addEventHandler("onPlayerLogin", root, function(player) giveWeapon(player, 31,200) end ) addEventHandler("onPlayerSpawn", root, function(player) giveWeapon(player, 31,200) end )
  6. don't localplayer. my full new code in guiSetText value don't work. addEvent("set", true) addEventHandler("set", root, function(değer) guiSetText(labels, tostring(değer)) end ) function getPlayerNames() player = getPlayerName(source) triggerClientEvent("set", resourceRoot, player) end addEventHandler("onPlayerJoin", root, getPlayerNames)
  7. Where Problem. getPlayerName(source) don't getPlayerName(localPlayer) function directxName() des = getPlayerName(source).." " dxDrawText(des, (screenW * 0.0500) + 1, (screenH * 0.4700) + 1, (screenW * 0.2175) + 1, (screenH * 0.4950) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, true, false) dxDrawText(des, screenW * 0.0500, screenH * 0.4700, screenW * 0.2175, screenH * 0.4950, tocolor(254, 254, 254, 254), 1.00, "default-bold", "center", "center", false, false, false, true, false) dxDrawImage(screenW * 0.0175, screenH * 0.4633, screenW * 0.0275, screenH * 0.0317, "data/img/jn.png", 0, 0, 0, tocolor(92, 231, 0, 168), false) end
  8. function Click(AristatesTik, state2, x2, y2) if AristatesTik == "left" and state2 == "down" then if x2 >= screenW * 0.3812 and y2 >= screenH * 0.5417 and x2 <= screenW * 0.3812+screenW * 0.5125 and y2 <= screenH * 0.5417+screenH * 0.5983 then text = guiGetText(edtBx) textpass = guiGetText(edtBx2) if string.format(#text) ~= "" and string.format(#textpass) then triggerServerEvent("test", getLocalPlayer(), text, textpass) end end end end addEventHandler("onClientClick", root, Click) addEvent("test", true) addEventHandler("test", root, function(text, textpass, player) local account = getAccount(text, textpass) if account then if logIn(player, text, textpass) then outputChatBox("You are now Logged In", player) else outputChatBox("unkown Name.") end else outputChatBox("pasword as Wrong") end end )
  9. "800" height="600" controls> "http://mta/local/myVideo.webm" type="video/webm"/>
  10. I'm using would trigger a number value.
  11. buttonBuy = guiCreateButton(9, 297, 130, 26, "Buy House", false, window2) intPrice = guiCreateEdit(114, 294, 178, 22, "", false, window1) local theMoney = tonumber ( textPrice ) function buyApart() if buttonBuy == source then playerMoney = getPlayerMoney(localPlayer) if playerMoney >= theMoney then guiSetEnabled(buttonSell, true) outputChatBox("House Bought", 24, 247, 7, true) textPrice = guiGetText ( intPrice ) if textPrice ~= "" then triggerServerEvent("takingMoney", localPlayer, textPrice) else outputChatBox("Insufficient cash.", 249, 10, 4 ) end end end addEventHandler("onClientGUIClick", buttonBuy, buyApart, false) function takeMoney(textPrice) takePlayerMoney(source, textPrice) end addEvent("takingMoney", true) addEventHandler("takingMoney", getRootElement(), takeMoney)
  12. addEventHandler("onClientResourceStart", root, function() intEdit = guiCreateEdit(111, 147, 166, 22, "", false, window1) intx = guiCreateEdit(110, 170, 167, 22, "", false, window1) inty = guiCreateEdit(111, 193, 170, 21, "", false, window1) intz = guiCreateEdit(109, 214, 178, 19, "", false, window1) end) addEventHandler("onClientGUIClick", root, function() if source == Button then intEditBox = guiGetText(intEdit) intxBox = guiGetText(intx) intyBox = guiGetText(inty) setElementInterior(localPlayer, tostring(intEditBox), tostring(intxBox), tostring(intyBox), tostring(intzBox) ) end end )
  13. what do you mean ? working the gui. SpawnveicleRcLr01 = createMarker(-2147, -738, 31, "cylinder", 1.5, 255, 0, 0, 153) addEventHandler ( "onClientResourceStart", root, function() RACELRWINDS = guiCreateWindow(498, 289, 267, 158, "PAINEL RACE LOS RED", false) guiWindowSetSizable(RACELRWINDS, false) guiSetProperty(RACELRWINDS, "CaptionColour", "FF1700FC") guiSetVisible(RACELRWINDS, false) end) addEventHandler ( "onClientMarkerHit", root, function (hitElement) if source == SpawnveicleRcLr01 then if hitElement == localPlayer then guiSetVisible(RACELRWINDS, true) showCursor(true) end end end) addEventHandler ( "onClientMarkerLeave", root, function (hitElement) if source == SpawnveicleRcLr01 then if hitElement == localPlayer then guiSetVisible(RACELRWINDS, false) showCursor(false) end end end)
  14. don't spam. example the code triggerServerEvent triggerClientEvent getPlayerName onClientMouseWheel onClientRender addEvent addEventHandler
  15. fixed it code addEventHandler ( "onClientMarkerHit", root, function (hitElement) if source == SpawnveicleRcLr01 then if hitElement == localPlayer then guiSetVisible(RACELRWINDS, true) showCursor(true) end end end) addEventHandler ( "onClientMarkerLeave", root, function (hitElement) if source == SpawnveicleRcLr01 then if hitElement == localPlayer then guiSetVisible(RACELRWINDS, false) showCursor(false) end end end)
  16. why ? JUST it change. addEventHandler ( "onClientMarkerHit", root, function (hitElement) if source == SpawnveicleRcLr01 if hitElement == localPlayer then guiSetVisible(RACELRWINDS, true) showCursor(true) end end end) addEventHandler ( "onClientMarkerLeave", root, function (hitElement) if source == SpawnveicleRcLr01 if hitElement == localPlayer then guiSetVisible(RACELRWINDS, false) showCursor(false) end end end)
  17. addEventHandler('onClientGUIClick', root, function() if source == button1 then if guiGridListGetSelectedItem ( gridlist1 ) ~= -1 then ids = guiGridListGetSelectedItem ( gridlist1 ) givePedWeapon(source, ids, 5000, true) end end end )
  18. Ed:This is My Code. should on working Client - side addEventHandler("onClientResourceStart", root, function() triggerServerEvent("start", getLocalPlayer()) end ) addEvent("song", true) addEventHandler("song", root, function(player) stream = playSound(tostring(player)) end ) Server - side addEvent("start", true) addEventHandler("start",root, function() sound = "http://www.mtaturk.net/upload/uploads/Fast%20Furious%204%20SoundTrack%20-%20Krazy%20PitBull%20ft%20Lil%20Jon%20HD%20720p.mp3" triggerClientEvent("song", resourceRoot, sound) end )
×
×
  • Create New...