
#Dv^
Members-
Posts
459 -
Joined
-
Last visited
Everything posted by #Dv^
-
Tenes un script client side que esta intentando ejecutar un evento server side que no existe
-
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?
-
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)
-
Euro Truck Simulator
-
Pásalo
-
Hazlo para estar seguro
-
Sí, no había leído si tu S.O era de 32bits, sorry
-
Pues no sé entonces, intenta mirar si estás bibliotecas no le hace falta a tu pc
-
Texto personalizado en menú de animaciones de freeroam
#Dv^ replied to Matias_Montanna's topic in Scripting
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 -
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
-
Quizás esto te sirva, lo leí en un post:
-
Texto personalizado en menú de animaciones de freeroam
#Dv^ replied to Matias_Montanna's topic in Scripting
{'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 -
Texto personalizado en menú de animaciones de freeroam
#Dv^ replied to Matias_Montanna's topic in Scripting
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 -
Texto personalizado en menú de animaciones de freeroam
#Dv^ replied to Matias_Montanna's topic in Scripting
Posteá tu código del fr_client.lua -
Pues actualiza, o también verifica que tengas los componentes como DirectX instalados, no sé pero es una opción
-
Texto personalizado en menú de animaciones de freeroam
#Dv^ replied to Matias_Montanna's topic in Scripting
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> -
Texto personalizado en menú de animaciones de freeroam
#Dv^ replied to Matias_Montanna's topic in Scripting
¿Te refieres tipo a una "ID" para identificar cada animación?, ¿Cómo en el cuadro de búsqueda del panel de skin's? -
No hay por qué :b
-
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
-
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)
-
Prueba los de esta página, quizás podría arreglar tu problema, https://nightly.multitheftauto.com/
-
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 )
-
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
-
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 )
- 1 reply
-
- 1
-