PhantomDamn Posted April 17, 2013 Posted April 17, 2013 hola, por que sera que activo este resource de TALP y me sale dos veces juntos con el que viene al comienzo
PhantomDamn Posted April 18, 2013 Author Posted April 18, 2013 hay varios recursos que se llaman hudby... cambia el modelo del arma que aparece en la parte superior, lado derecho. esto incluye el arma, health, armour y nivel de busqueda... pero cuando activo queda encima de las que viene normalmente... este es el recurso https://community.multitheftauto.com/index.php?p=resources&s=details&id=5868
AlvareZ_ Posted April 19, 2013 Posted April 19, 2013 function hud () showPlayerHudComponent ( source, "all", true ) end addEventHandler("onPlayerSpawn", getRootElement(), hud)
MTA Team 0xCiBeR Posted April 19, 2013 MTA Team Posted April 19, 2013 Si, server-side si no me equivoco...
NodZen Posted April 19, 2013 Posted April 19, 2013 Si, server-side si no me equivoco... Si, es en server side.
PhantomDamn Posted April 21, 2013 Author Posted April 21, 2013 no me anda... activo el hudby y donde aparecen las armas, money, health y armour queda dos veces , el que trae el default y el hudby se ve feo meta: "Gaby" version="1.0" description="Hudby" name="News" type="script" /> script hudby2.lua function hud () showPlayerHudComponent ( source, "all", true ) end addEventHandler("onPlayerSpawn", getRootElement(), hud)
FraN-724 Posted April 21, 2013 Posted April 21, 2013 Intenta con esto client side function quitar ( ) setTimer ( function ( ) for _, hud in ipairs ( { "armour", "health", "money", "clock", "weapon", "ammo", "money", "wanted" } ) do showPlayerHudComponent ( hud, false ) end end ,1000, 1 ) end addEventHandler ( "onClientPlayerSpawn", localPlayer, quitar )
AlvareZ_ Posted April 21, 2013 Posted April 21, 2013 Tambien Fran pero si usa el spawn de 50p, El mismo Spawn crea los Hud Por eso le pregunto
PhantomDamn Posted April 21, 2013 Author Posted April 21, 2013 Tambien Fran pero si usa el spawn de 50p, El mismo Spawn crea los Hud Por eso le pregunto si lo uso y sabes que tu practicamente me lo reparaste todo ... entonces tendria que modificar el spawn?
AlvareZ_ Posted April 21, 2013 Posted April 21, 2013 En el c_main.lua esta esta parte: allHUDElements = { "ammo", "area_name", "armour", "breath", "clock", "health", "money", "radar", "vehicle_name", "weapon", } Tiene que quedar: allHUDElements = { "area_name", "radar", "vehicle_name", }
FraN-724 Posted April 21, 2013 Posted April 21, 2013 si lo uso y sabes que tu practicamente me lo reparaste todo ... entonces tendria que modificar el spawn? Sí.
Recommended Posts