Jump to content

#Dv^

Members
  • Posts

    459
  • Joined

  • Last visited

Everything posted by #Dv^

  1. #Dv^

    Duda

    Pero ese únicamente me permite ver/administrar los grupos, ACL, kickear o banear, yo me refería si lo que escribo en el servidor '/say Prueba' salga en la página web
  2. Tenes un script client side que esta intentando ejecutar un evento server side que no existe
  3. #Dv^

    Duda

    Hola, tengo una duda, y es si es posible que desde una página web pueda ver el chat del servidor, es decir uso el recurso 'resourcebrowser' con el cuál me conecto vía https al servidor, desde allí puedo hacer varias cosas, y la duda es esa si puedo leer los chat's del servidor desde el http, ¿Es posible y que podría usar para lograrlo?
  4. Eso es sólo el nombre del trigger para identificar el evento, sólo tienes que nombrar el evento de ese trigger de la misma manera triggerEvent("evento:evento1", root) -- este trigger se llamará "evento:evento1" --El evento de debe llamar como el trigger, así se identifica a ese trigger addEvent("evento:evento1", true) addEventHandler("evento:evento1", root, thefunction)
  5. Euro Truck Simulator
  6. Hazlo para estar seguro
  7. Sí, no había leído si tu S.O era de 32bits, sorry
  8. Pues no sé entonces, intenta mirar si estás bibliotecas no le hace falta a tu pc
  9. function RemoveHEXColorCode( s ) return s:gsub( '#%x%x%x%x%x%x', '' ) or s end function toggleFRWindow() if isWindowOpen(wndMain) then showCursor(false) hideAllWindows() colorPicker.closeSelect() else showCursor(true) showAllWindows() setControlText(wndMain, 'name', RemoveHEXColorCode(getPlayerName(localPlayer))) end end
  10. Sorry, ignora mi post anterior Si no te funciona en varios programas o videojuegos, quizás la causa sea por que a tu PC le faltan componentes, intenta instalar esto
  11. Quizás esto te sirva, lo leí en un post:
  12. {'lbl', id='name'}, function toggleFRWindow() if isWindowOpen(wndMain) then showCursor(false) hideAllWindows() colorPicker.closeSelect() else showCursor(true) showAllWindows() setControlText(wndMain, 'name', getPlayerName(localPlayer)) end end
  13. En 'animations.xml' todas las animaciones debe tener su id, por eso sale el Warning PD: Sino usa esté código si no quieres que todas tengan una 'nombre' personalizado function applyAnimation(leaf) if type(leaf) ~= 'table' then leaf = getSelectedGridListLeaf(wndAnim, 'animlist') if not leaf then return end end if leaf.id then server.setPedAnimation(g_Me, leaf.parent.name, leaf.id, true, true) else server.setPedAnimation(g_Me, leaf.parent.name, leaf.name, true, true) end end
  14. Posteá tu código del fr_client.lua
  15. Pues actualiza, o también verifica que tengas los componentes como DirectX instalados, no sé pero es una opción
  16. Creo que a esto referís :b Debes modificar el fr_client.lua y reemplazarlo por esto function applyAnimation(leaf) if type(leaf) ~= 'table' then leaf = getSelectedGridListLeaf(wndAnim, 'animlist') if not leaf then return end end server.setPedAnimation(g_Me, leaf.parent.name, leaf.id, true, true) end wndAnim = { 'wnd', text = 'Set animation', width = 250, x = -20, y = 0.3, controls = { { 'lst', id='animlist', width=230, height=290, columns={ {text='Animation', attr='name'} }, rows={xml='animations.xml', attrs={'name', 'id'}}, expandlastlevel=false, onitemdoubleclick=applyAnimation }, {'btn', id='set', onclick=applyAnimation}, {'btn', id='stop', onclick=stopAnimation}, {'btn', id='close', closeswindow=true} } } Y en el animation.xml debes usarlo así <group name="AIRPORT"> <anim name="animacion" id="thrw_barl_thrw"/> </group>
  17. ¿Te refieres tipo a una "ID" para identificar cada animación?, ¿Cómo en el cuadro de búsqueda del panel de skin's?
  18. No hay por qué :b
  19. Busca el archivo 'admin_server.lua' y en la línea 508 reemplaza la función 'aAction' por esta: function aAction ( type, action, admin, player, data, more ) if ( aLogMessages[type] ) then function aStripString ( string ) string = tostring ( string ) string = string.gsub ( string, "$admin", getPlayerName ( admin ) ) string = string.gsub ( string, "$by_admin_4all", isAnonAdmin4All( admin ) and "" or " by " .. getPlayerName ( admin ) ) string = string.gsub ( string, "$by_admin_4plr", isAnonAdmin4Victim( admin ) and "" or " by " .. getPlayerName ( admin ) ) string = string.gsub ( string, "$data2", more or "" ) if ( player ) then string = string.gsub ( string, "$player", getPlayerName ( player ) ) end return tostring ( string.gsub ( string, "$data", data or "" ) ) end local node = aLogMessages[type][action] if ( node ) then local r, g, b = node["r"], node["g"], node["b"] if ( node["all"] ) then outputChatBox ( aStripString ( node["all"] ), _root, r, g, b , true) end if ( node["admin"] ) and ( admin ~= player ) then outputChatBox ( aStripString ( node["admin"] ), admin, r, g, b, true) end if ( node["player"] ) then outputChatBox ( aStripString ( node["player"] ), player, r, g, b, true) end if ( node["log"] ) then outputServerLog ( aStripString ( node["log"] ) ) end end end end
  20. Busca los outputChatBox, quizás te saldría así outputChatBox("Pepito has been muted by Carlitos", root, 255, 0, 0) Y sólo añade un 'true' para que detecte los códigos HEX outputChatBox("#000000Pepito #FFFFFFhas been muted by Carlitos", root, 255, 0, 0 ,true)
  21. Prueba los de esta página, quizás podría arreglar tu problema, https://nightly.multitheftauto.com/
  22. #Dv^

    Ayuda.

    Es algo más sencillo así :b local weapons = {} addEventHandler("onPlayerWasted", root, function(ammo, attacker, weapon) for i = 0, 12 do local weapon = getPedWeapon ( source, i ) local ammo = getPedTotalAmmo( source, i) weapons[weapon] = ammo end end ) addEventHandler ( "onPlayerSpawn", getRootElement(), function ( ) for weapon, ammo in pairs ( weapons ) do giveWeapon(source, weapon, ammo, true) end end )
  23. Pues deberías sólo editar el script del scoreboard o mostrar cuál usas, aunque si te explicarás mejor a como lo quieres te entendería mejor
  24. No era tan difícil, del mismo script ese sólo cambias ciertas cosas :b local x, y, z = 1976.0625, -1251.630859375, 22.8203125 addEventHandler( "onClientRender", root, function ( ) local Mx, My, Mz = getCameraMatrix( ) if ( getDistanceBetweenPoints3D( x, y, z, Mx, My, Mz ) <= 30 ) then local WorldPositionX, WorldPositionY = getScreenFromWorldPosition( x, y, z +1, 0.07 ) if ( WorldPositionX and WorldPositionY ) then dxDrawText("Entrada\nBase S.W.A.T.", WorldPositionX - 1, WorldPositionY - 1, WorldPositionX - 1, WorldPositionY - 1, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Entrada\nBase S.W.A.T.", WorldPositionX + 1, WorldPositionY - 1, WorldPositionX + 1, WorldPositionY - 1, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Entrada\nBase S.W.A.T.", WorldPositionX - 1, WorldPositionY + 1, WorldPositionX - 1, WorldPositionY + 1, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Entrada\nBase S.W.A.T.", WorldPositionX + 1, WorldPositionY + 1, WorldPositionX + 1, WorldPositionY + 1, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Entrada\nBase S.W.A.T.", WorldPositionX, WorldPositionY, WorldPositionX, WorldPositionY, tocolor(255, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) end end end )
×
×
  • Create New...