Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 21/12/21 in all areas

  1. اذا بدك وظيفه تدمير الكائن تقدر تستخدم او ممكن تستخدمه لاكثر من شي انا عطيتك مثالين لها addEventHandler("onClientGUIClick", root, function() if source == button then destroyElement(button) end end) -------------------------------------------- addEventHandler("onPickupHit",root, function(player) if source == pickup then destroyElement(pickup) end end) او ممكن تستخدم كمان شيئ ثاني يلي هو وظيفه تعطيل الزر او يفعل الزر بهاذا شكل addEventHandler("onClientGUIClick", root, function() if source == button then guiSetEnabled(button, not guiGetEnabled(button)) end end)
    1 point
  2. وظيفته تدمير الكائنات وتحريرها من الرام destroyElement وظيفته يفعل/يعطل كائن بحيث ماتقدر تضغط guiSetEnabled
    1 point
  3. Olá, boa noite tudo bem? Fiz desta maneira, imagino que seja isso que esteja procurando hehe. Testa e me avisa ai meu querido! local var = { comandos = {}, } addEventHandler("onResourceStart", root, function () var.comandos = {} local resourceTable = getResources() for _, resourceValue in ipairs(resourceTable) do local comandos = getCommandHandlers(resourceValue) for _, v in ipairs(comandos) do var.comandos.v = true end end end) addEventHandler("onPlayerCommand", getRootElement(), function (cmd) if not var.comandos.cmd then outputChatBox("[ERRO] Esse comando não existe. Digite: /Ajuda ou peça suporte a um Administrador.", source, 255, 0, 0) end end)
    1 point
  4. 1 point
  5. you need to tell exactly your problem, i didn't understand you but as i understand i sent you this,more edit apply set timer. addEventHandler("onPlayerLogin",root,function() if not isElement(source) then return end outputChatBox("Welcome Message.", source, 255, 235, 0, true) end) function ServerMessages1() outputChatBox("Server1.", root, 255, 235, 0, true) setTimer(ServerMessages2,(60000*5),1) end function ServerMessages2() outputChatBox("Server2",root,255,235,0,true) setTimer(ServerMessages3,(60000*5),1) end function ServerMessages3() outputChatBox("Server3", root, 255, 235, 0, true) setTimer(ServerMessages4,(60000*5),1) end
    1 point
  6. Moving this into the Scripting section for you. See the reply above.
    1 point
  7. مافي اي مشكلة في الدخول إلى الموقع norton و kaspersky جربت ياليت تقول لي اي برنامج تستخدم وتصور الشاشة لرسالة الخطأ الظاهره لك عند محاولة دخول موقعنا
    1 point
  8. function hideall(player) showPlayerHudComponent ( "ammo", false ) showPlayerHudComponent ( "area_name", false ) showPlayerHudComponent ( "armour", false ) showPlayerHudComponent ( "breath", false ) showPlayerHudComponent ( "clock", false ) showPlayerHudComponent ( "health", false ) showPlayerHudComponent ( "money", false ) showPlayerHudComponent ( "vehicle_name", false ) showPlayerHudComponent ( "weapon", false ) showPlayerHudComponent ( "radio", false ) end addEventHandler ( "onClientResourceStart", getRootElement(), hideall ) function showall(player) showPlayerHudComponent ( "ammo", true ) showPlayerHudComponent ( "area_name", true ) showPlayerHudComponent ( "armour", true ) showPlayerHudComponent ( "breath", true ) showPlayerHudComponent ( "clock", true ) showPlayerHudComponent ( "health", true ) showPlayerHudComponent ( "money", true ) showPlayerHudComponent ( "vehicle_name", true ) showPlayerHudComponent ( "weapon", true ) showPlayerHudComponent ( "radio", true ) end addEventHandler ( "onClientResourceStop", resourceRoot, showall ) This should be work. Add this on client side.
    1 point
  9. Search in community before open topic https://community.multitheftauto.com/ind ... ils&id=791
    1 point
×
×
  • Create New...