Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 13/08/19 in Posts

  1. السلام عليكم اول مره اطرح وظيفه ☺ الوظيفه هي اغلاق اللوحه مثل اللي بالجيو اديتور function CreateButtonClose( GuiElement , text,d) if getElementType(GuiElement) == 'gui-window' then local Text = '|'..text..' |' local Font = 'default-bold-small' local width = dxGetTextWidth(Text, 1, Font) local x = d == 'left' and guiGetSize(GuiElement, false)-50 or d == 'right' and 5 local ln = guiCreateLabel(x,2,width+5,15,Text, false,GuiElement) guiSetProperty(ln ,'ClippedByParent', 'False') guiSetProperty(ln ,'AlwaysOnTop', 'True') guiSetFont(ln , Font) guiLabelSetColor(ln ,150,150,150) guiLabelSetHorizontalAlign(ln , 'center', false) --- Events addEventHandler('onClientGUIClick',ln, function() guiSetVisible(GuiElement, false ) end,false) addEventHandler('onClientMouseEnter',ln, function() guiLabelSetColor(source ,255, 69, 59) end,false) addEventHandler('onClientMouseLeave',ln, function() guiLabelSetColor(source ,150,150,150) end,false) else print('This function is a static function the Window') end end --- Test Code window1 = guiCreateWindow(0.01, 0.04, 0.70, 0.70, "Window1", true) window2 = guiCreateWindow(0.43, 0.04, 0.38, 0.29, "Window2", true) for k,element in ipairs(getElementsByType('gui-window',getResourceGUIElement(getThisResource()))) do CreateButtonClose ( element,'Close','right' ) --CreateButtonClose ( element,'Close','left' ) end معلش مابعرف اشرح بس تقدرو تجربو الوظيفه واتمني ان تنال اعجابكم ?
    2 points
  2. Like this addEventHandler("onClientRender", root, function() local scoreboard_rows = {}; for i, player in pairs(getElementsByType("player")) do if not getPlayerTeam(player) then table.insert(scoreboard_rows, player); end end for i, team in pairs(getElementsByType("team")) do local team_players = getPlayersInTeam(team); if #team_players > 0 then table.insert(scoreboard_rows, team); for i, player in pairs(team_players) do table.insert(scoreboard_rows, player); end end end for i, row in pairs(scoreboard_rows) do if getElementType(row) == "player" then -- draw your dx stuff here elseif getElementType(row) == "team" then -- draw your dx stuff here end end end )
    1 point
  3. By using playSound3D you have to use a direct link to the audio source, for example a link that ends with ".mp3" Accepted formats: MP3, WAV, OGG, RIFF, MOD, XM, IT and S3M. And about youtube, You can not do it directly but I believe there's a work around, some APIs could convert youtube links into MP3 links then you may play them.
    1 point
  4. Utiliza el resource 'sql' de la versión original 1.0: https://github.com/mabako/mta-paradise
    1 point
  5. السلام عليكم ذا مثال اعتقد مفهوم مفي داعي اشرحه local screenW, screenH = guiGetScreenSize() function content() dxDrawRectangle((screenW - 356) / 2, (screenH - 447) / 2, 356, 447, tocolor(0, 0, 0, 150), false) -- 447 + 356 الارقام الاصليه حقت المكان الي تبيه dxDrawText("Test", (screenW - 150) / 2, (screenH - 450) / 2, 150, 450, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) end
    1 point
  6. Looks like the converting script was wrong for all this! thanks for the help guys!
    1 point
  7. تسلممء حسن صرآحه المشكله اتحلت عشان ذا الخطأ بس
    1 point
  8. https://wiki.multitheftauto.com/wiki/SetNearClipDistance
    1 point
  9. وظيفه مفيده و كويسه بالتوفيق اوسكر مبدع كالعاده عندي اقتراح صغير ليك انك تضيف ايفنت مع الوظيفه عشان لو في حالات خاصه مع قفل اللوحه
    1 point
  10. Para desabilitar o F11: toggleControl("radar", false) Já para criar um personalizado envolve um conhecimento avançado (coordenadas/dimensionamento etc...). Sugiro utilizar algum da internet como base.
    1 point
  11. I do not understand what you are trying to do, could you explain better? function doChat(player, command, ...) if ... then local message = table.concat({...}, "") for i, v in pairs(getElementsByType("player")) do local x, y, z = getElementPosition(player) local xt, yt, zt = getElementPosition(v) if getDistanceBetweenPoints3D(x, y, z, xt, yt, zt) <= 10 then outputChatBox(string.gsub(message, "*", " - ").." (" ..getPlayerName(player).. ")", v, 194, 162, 218, true) end end end end addEventHandler("CommmandHandler", getRootElement(), doChat) addCommandHandler("do", doChat) I did what I understood. replace "*" with " - "
    1 point
  12. Info في جهة كلنت حاط شي اسمه لكن ف جهة سيرفر مو راسله مع التريقر شوف ذا triggerClientEvent(player,"podiumStart",player) المفروض تضيف الي بترسله هنا
    1 point
  13. Hello. I would like to report about a Fake Server that using Arab Legends For Zombie name.. Fake server : mtasa://37.59.72.197:22022 Real Server : mtasa://51.255.215.248:23114 Thank you.
    1 point
  14. Привет. Серверный скрипт, и главное не забыть про ACL права для startResource. for _, v in ipairs ( getResources ( ) ) do if string.find ( getResourceName ( v ), "game_" ) then startResource ( v ) end end
    1 point
  15. Innovative Gaming Network is inviting you to come play at our Server. We have many unique qualities to offer at IGN. Choose your side, and get started today on the Server. You can choose to be a cop, criminal or even a civilian. Create your own gang, squad or company. Start from the ground, and build yourself up to reach the top of the leader board on the Server. Challenge friends, organizations, and you can even take part in events to win easy cash. A community led by the People who play on it. Your opinion matters to us. Join us today and invite your friends if you are convinced this is a place you want to play at - https://discord.gg/fgRW9DY. IP: mtasa://51.77.212.124:1119 Forum website: ignrpg.us
    1 point
×
×
  • Create New...