Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 20/07/20 in all areas

  1. Use isso: isObjectInACLGroup
    1 point
  2. Please edit your post with the proper tag [REQ] [SHOW] [SELL] etc.
    1 point
  3. I found this similar issue: https://github.com/multitheftauto/mtasa-blue/issues/1466 Try removing the spaces from the .png file names
    1 point
  4. 1 point
  5. adf.ly وعليكم السلام، ممنوع استخدام الروابط الربحية تم حذف الرابط الى حين تعديل الموضوع
    1 point
  6. ?. You can do it with a simple texture replacement shader. local rawShader = [[ texture Tex; technique simple { pass P0 { Texture [ 0 ] = Tex; } } ]] local shader = dxCreateShader ( rawShader, 0, 0, false, "ped" ) local texture = dxCreateTexture ( 1, 1 ) dxSetShaderValue ( shader, "Tex", texture ) engineApplyShaderToWorldTexture ( shader, "muzzle_texture4" )
    1 point
  7. Checa este ejemplo: Client Side: --Crear una Ventana y ocultarla PANEL = guiCreateWindow(0.27, 0.27, 0.47, 0.58, "", true) guiSetVisible ( PANEL, false ) --Evento para abrir la ventana function open_gui() if guiGetVisible(PANEL) == false then guiSetVisible(PANEL, true) showCursor (true) else guiSetVisible(PANEL, false) showCursor (false) end end addEvent("showGUI", true) addEventHandler("showGUI", getRootElement(), open_gui) Server Side: --Funcion para limitar la GUI mediante un grupo ACL function abrir(thePlayer) accountname = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup("user." .. accountname, aclGetGroup("Admin")) then triggerClientEvent(thePlayer, "showGUI", getRootElement()) end end --Funcion para activar un bind a la GUI cuando se inicia este resource function inicio() for index, player in ipairs(getElementsByType("player")) do bindKey(player, "F5", "down", abrir) end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), inicio) --Funcion para activar un bind cuando un player entra al servidor function entrar() bindKey(source, "F5", "down", abrir) end addEventHandler("onPlayerJoin", getRootElement(), entrar) --Function para desactivar el bind cuando el resource es detenido function unbin(player) for index, player in ipairs(getElementsByType("player")) do unbindKey(player, "F5", "down", abrir) end end addEventHandler("onResourceStop", getResourceRootElement(getThisResource()), unbind) Y para las resoluciones te recomiendo usar variables relativas y no absolutas.
    1 point
  8. ذا الكود bindKey("f5","down",function() if (guiGetVisible(GUIEditor.label[1]) == true) then guiSetVisible(GUIEditor.label[1], false) showCursor(false) else guiSetVisible(GUIEditor.label[1], true) showCursor(true) end end) خلاص عرفت فين المشكلة وحليتها واشتغلت شكرا علي مساعدتك N3xT طبعا سبب الي سبب ان guiSetVisible متقومش بوظيفتها هوا addEventHandler ( "onResourceStart"... وبتالي خليت فنشكشن الجيو مشتغلش
    0 points
×
×
  • Create New...