Citrus

Members
  • Content Count

    37
  • Joined

  • Last visited

Community Reputation

0 Neutral

1 Follower

About Citrus

  • Rank
    Rat

Details

  • Gang
    |P.F.A|
  • Location
    Argentina, Buenos Aires, Florencio Varela.
  • Occupation
    Estudiante
  • Interests
    Ayudenme con mi Server por favor.

Recent Profile Visitors

653 profile views
  1. Oh nice, thank you..... I have a problem that when I start the server and write debugscript 3 I get the following error: ERROR: Server triggered clientside event onPlayerDoneLogin , but event is not added clientside... It does not show me the error route, solution?
  2. triggerEvent("displayClientInfo", openVIPWindow(), "thePlayer", openVIPWindow, "¡No eres usuario V.I.P!.", 0, 255, 0) playSound("sonidos/denegar.mp3") It does not work when you're not VIP. Does not emit sound The others work well when opening and closing the vip panel emits a sound.
  3. This is the client.lua But the sound does not work --------------------------- function openVIPWindow() guiSetVisible(vipWind, not guiGetVisible(vipWind)) if not guiGetVisible(vipWind) then showCursor(false) local cerrar = playSound("sonidos/cerrar.mp3") setSoundVolume(cerrar, 0.3) else showCursor(true) local abrir = playSound("sonidos/abrir.mp3") setSoundVolume(abrir, 0.3) --------------------------- triggerEvent("displayClientInfo", openVIPWindow(), "thePlayer", openVIPWindow, "¡No eres usuario V.I.P!.", 0, 255, 0) playSound("sonidos/denegar.mp3") end end addEvent("openVIPWindow", true) addEventHandler("openVIPWindow", getRootElement(), openVIPWindow)
  4. to sound a sound should I add this? function openVIPpanel(thePlayer) account = getPlayerAccount(thePlayer) if isObjectInACLGroup("user."..getAccountName(account), aclGetGroup("VIP")) then triggerClientEvent (thePlayer, "openVIPWindow", thePlayer) else outputChatBox("¡No eres usuario V.I.P!.",thePlayer,255,0,0) local denegar = playSound("denegar.mp3") -- HERE? setSoundVolume(denegar, 0.3) -- HERE? end end function resourceStart ( ) for k, v in pairs ( getElementsByType ( "player" ) ) do bindKey ( v, "F6", "down", openVIPpanel ); end end addEventHandler ( "onResourceStart", resourceRoot, resourceStart ) function playerJoin ( ) bindKey ( source, "F6", "down", openVIPpanel ); end addEventHandler ( "onPlayerJoin", root, playerJoin )
  5. Tengo esto en comando pero quisiera pasarlo a binkey, alguien me da una manito?. function openVIPpanel(thePlayer) account = getPlayerAccount(thePlayer) if isObjectInACLGroup("user."..getAccountName(account), aclGetGroup("VIP")) then triggerClientEvent (thePlayer, "openVIPWindow", thePlayer) else outputChatBox("¡No eres usuario V.I.P!.",thePlayer,255,0,0) end end addCommandHandler ( "vip", openVIPpanel) --bindKey("F6","up",openVIPpanel) -- intente reemplazar addCommandHandler por esta linea pero me tira error, asi que no tengo mas ideas :C Esta función esta en server.lua
  6. Buenas!, este script está muy bueno, basicamente lo que hace es darte la posibilidad de seleccionar tu personaje con unos blink para moverte y a su vez decidír el sexo del mismo. El problema deviene cuando has seleccionado a tu personaje? este al iniciar se quita el skin que te pusiste y automaticamente se pone el skin inicial, no sé si me doy a entender?. Lo que quiero es saber como hago para qu el skin pretederminado de mi server Day-Z no reemplaze el de panel menú selección, aquí el script!: femaleSkins = {179, 93} maleSkins = {73, 287} --------**-------- -------//\\------- ------// \\------ -----// \\----- ----// \\---- ---// \\--- --// \\-- --\\ Settings //-- local defaultSex = "male" -- Set the default sex (Can be "male" or "female") -- Please note that any of the timers below are in milliseconds (ms) local skinCamTimer = 100 -- Timer to switch the camera to the selected skin (Change to a higher value if the camera doesn't switch to the Ped Selection Screen) local playerCamTimer = 100 -- Timer to switch the camera back to the player (Change to a higher value if the camera doesn't switch back to the player) local setSkinTimer = 50 -- Timer to override any skin change done by other scripts (Change to a higher value if the player's skin doesn't change) -- Scroll settings local autoScrollStart = 200 -- Set the time it takes in ms to enable auto scroll when holding down your arrow keys (cannot be lower than 50) local autoScrollSpeed = 80 -- Set the time it takes in ms to switch between skins when holding down your arrow keys (cannot be lower than 50) --// \\-- --\\ //-- ---\\ //--- ----\\ //---- -----\\ //----- ------\\ //------ -------\\//------- --------**-------- local sWidth,sHeight = guiGetScreenSize() local origWidth,origHeight = 1280,960 local isScreenVisible = false local skinRequested = false function text(text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI) dxDrawText(text, x/origWidth*sWidth+1.5, y/origHeight*sHeight+1.5, w/origWidth*sWidth+1.5, h/origHeight*sHeight+1.5, tocolor(0,0,0,255), scale/origWidth*sWidth, font, alignX, alignY, clip, wordBreak, postGUI) dxDrawText(text, x/origWidth*sWidth, y/origHeight*sHeight, w/origWidth*sWidth, h/origHeight*sHeight, color, scale/origWidth*sWidth, font, alignX, alignY, clip, wordBreak, postGUI) end function image(x, y, w, h, image, rotation, rotationCenterOffsetX, rotationCenterOffsetY, color, postGUI) dxDrawImage(x/origWidth*sWidth, y/origHeight*sHeight, w/origWidth*sWidth, h/origHeight*sHeight, image, rotation, rotationCenterOffsetX, rotationCenterOffsetY, color, postGUI) end function mainScreen() dxDrawImage(0,0,sWidth,sHeight,"img/bg.png",0,0,0,tocolor(255,255,255,255),true) text("Selecciona a tu superviviente:", 74, 35, 610, 136, tocolor(0, 155, 255, 255), 5.00, "default", "left", "top", false, false, true, false, false) text("Soldado-Z: "..selectedSkin.."/"..totalSkins, 290, 198, 440, 249, tocolor(0, 155, 255, 255), 2.50, "default", "left", "top", false, false, true, false, false) text("Use el ratón o las flechas de tu teclado para seleccionar. Presiona [Enter] cuando hallas decidido.", 322, 837, 1042, 875, tocolor(255, 255, 255, 255), 2.00, "default", "center", "center", false, false, true, false, false) image(473, 419, 96, 140, "img/arrow.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) image(767.75, 419, 96, 140, "img/arrow.png", 180, 0, 0, tocolor(255, 255, 255, 255), true) image(45, 207, 130, 131, "img/male.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) image(55, 380, 130, 131, "img/female.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) end function prevArrowBlink() image(473, 419, 96, 140, "img/arrow-blink.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) end function nextArrowBlink() image(767.75, 419, 96, 140, "img/arrow-blink.png", 180, 0, 0, tocolor(255, 255, 255, 255), true) end function maleActivated() image(45, 207, 130, 131, "img/male-active.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) end function femaleActivated() image(55, 380, 130, 131, "img/female-active.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) end local prevButtonClickable = guiCreateStaticImage(0.36, 0.44, 0.08, 0.15, "img/transparent.png", true) local nextButtonClickable = guiCreateStaticImage(0.62, 0.44, 0.07, 0.15, "img/transparent.png", true) local maleButtonClickable = guiCreateStaticImage(0.06, 0.21, 0.10, 0.14, "img/transparent.png", true) local femaleButtonClickable = guiCreateStaticImage(0.06, 0.40, 0.07, 0.14, "img/transparent.png", true) function showClickables(isScreenVisible) guiSetVisible(prevButtonClickable,isScreenVisible) guiSetVisible(nextButtonClickable,isScreenVisible) guiSetVisible(maleButtonClickable,isScreenVisible) guiSetVisible(femaleButtonClickable,isScreenVisible) end showClickables(isScreenVisible) function toggleScreen() if isScreenVisible then closeScreen() else addEventHandler("onClientRender",root,mainScreen) if defaultSex == "male" then addEventHandler("onClientRender",root,maleActivated) elseif defaultSex == "female" then addEventHandler("onClientRender",root,femaleActivated) end isScreenVisible = true showClickables(isScreenVisible) showCursor(true) setTimer(function()showChat(false)end,200,1) setPlayerHudComponentVisible("all",false) bindKey("enter","down",changePlayerSkin) end end function closeScreen() skinRequested = false firstTime = false setTimer(function()setCameraTarget(localPlayer)end,playerCamTimer,1) triggerServerEvent("setElemDimen",localPlayer,localPlayer,0) removeEventHandler("onClientRender",root,mainScreen) removeEventHandler("onClientRender",root,femaleActivated) removeEventHandler("onClientRender",root,maleActivated) isScreenVisible = false showClickables(isScreenVisible) showCursor(false) setTimer(function()showChat(true)end,200,1) setPlayerHudComponentVisible("all",true) unbindKey("enter","down",changePlayerSkin) end function onSpawn(firstTime) if skinRequested == true or firstTime == true then toggleScreen() triggerServerEvent("setElemDimen",localPlayer,localPlayer,2) triggerServerEvent("setElemFrozen",localPlayer,localPlayer,true) setTimer(function()setCameraMatrix(-4949.8793945313, 1934.9215087891, 1.1398046016693)end,skinCamTimer,1) elseif firstTime == true then addEventHandler("onClientPlayerSpawn",localPlayer,onSpawn) end firstTime = false end addEvent("onJoin",true) addEventHandler("onJoin",root,onSpawn) function requestSkinChange() if skinRequested == false then skinRequested = true addEventHandler("onClientPlayerSpawn",localPlayer,onSpawn) if not firstTime == true then outputChatBox("¡Podrá seleccionar otro skin después del siguiente spanw!.",0,225,75,true) end end end bindKey("F4","down",requestSkinChange) function changePlayerSkin() toggleScreen() setPlayerTheirSkin() skinChosen = true triggerServerEvent("setElemFrozen",localPlayer,localPlayer,false) removeEventHandler("onClientPlayerSpawn",localPlayer,onSpawn) end function setChosenSkinOnSpawn() if skinChosen == true then setTimer(function()setPlayerTheirSkin()end,50,1) end end addEventHandler("onClientPlayerSpawn",localPlayer,setChosenSkinOnSpawn) local ped = createPed(-4952.5239257813, 1940.0152587891, 1.1328125) setElementDimension(ped,2) local tune = playSFX3D("radio","Ambience",-4949.8793945313, 1934.9215087891, 1.1398046016693,true) setSoundVolume(tune,1) setSoundMaxDistance(tune,50) setElementDimension(tune,2) function getSelectedSkinID() local ID = skinTable[selectedSkin] return ID end function setMenuPedSkin() local ID = getSelectedSkinID() setElementModel(ped,ID) end function changeSex(sex) if source == maleButtonClickable or sex == "male" then defaultSex = "male" setPedAnimation(ped,"GANGS","Invite_Yes",_,_,false,false,_) skinTable = maleSkins totalSkins = #skinTable selectedSkin = 1 setMenuPedSkin() if isScreenVisible then removeEventHandler("onClientRender",root,femaleActivated) addEventHandler("onClientRender",root,maleActivated) end elseif source == femaleButtonClickable or sex == "female" then defaultSex = "female" setPedAnimation(ped,"BEACH","SitnWait_loop_W",_,_,false,false,_) skinTable = femaleSkins totalSkins = #skinTable selectedSkin = 1 setMenuPedSkin() if isScreenVisible then removeEventHandler("onClientRender",root,maleActivated) addEventHandler("onClientRender",root,femaleActivated) end end end addEventHandler("onClientGUIClick",resourceRoot,changeSex) changeSex(defaultSex) function selectNextSkin() if selectedSkin == totalSkins then selectedSkin = 1 else selectedSkin = selectedSkin+1 end end function selectPrevSkin() if selectedSkin == 1 then selectedSkin = totalSkins else selectedSkin = selectedSkin-1 end end function setPlayerTheirSkin() local ID = getSelectedSkinID() setTimer(function()triggerServerEvent("changePlayerSkin",localPlayer,ID,selectedSkin)end,setSkinTimer,1) end -- Button prev < local renderprev = true function prevPedButton() if isScreenVisible then playSound("scroll.mp3") if renderprev == true then addEventHandler("onClientRender",root,prevArrowBlink) renderprev = false end setTimer(function()removeEventHandler("onClientRender",root,prevArrowBlink) renderprev = true end,50,1) selectPrevSkin() setMenuPedSkin() end end addEventHandler("onClientGUIClick",prevButtonClickable,prevPedButton,false) bindKey("arrow_l","down",prevPedButton) -- Button next > local rendernext = true function nextPedButton() if isScreenVisible then playSound("scroll.mp3") if rendernext == true then addEventHandler("onClientRender",root,nextArrowBlink) rendernext = false end setTimer(function()removeEventHandler("onClientRender",root,nextArrowBlink) rendernext = true end,50,1) selectNextSkin() setMenuPedSkin() end end addEventHandler("onClientGUIClick",nextButtonClickable,nextPedButton,false) bindKey("arrow_r","down",nextPedButton) -- Scroll functions function nextPed_scroll() timernext = setTimer( function() timernext2 = setTimer( function() nextPedButton() end ,autoScrollSpeed,0) end ,autoScrollStart,1) end bindKey("arrow_r","down",nextPed_scroll) function prevPed_scroll() timerprev = setTimer( function() timerprev2 = setTimer( function() prevPedButton() end ,autoScrollSpeed,0) end ,autoScrollStart,1) end bindKey("arrow_l","down",prevPed_scroll) function killAutoScroll_next() if isTimer(timerprev) then killTimer(timerprev) elseif isTimer(timerprev2) then killTimer(timerprev2) end end bindKey("arrow_l","up",killAutoScroll_next) function killAutoScroll_prev() if isTimer(timernext) then killTimer(timernext) elseif isTimer(timernext2) then killTimer(timernext2) end end bindKey("arrow_r","up",killAutoScroll_prev)
  7. Una pregunta, no tienes el famoso panel de login de dayz? el que podes crear a tu personaje y luego logear????
  8. No entiendo nada, hablas castellano?. Tiene o no solución? Porque ya me cansa ese error!. incluso pensaba en eliminar la línea porque nadie me adyua o dice como solucionarlo!.
  9. And it is not serious? attempt to call global 'getElementSyncer' (a nil value) FIX PLEASE!!!!!
  10. I need help with this error that it throws me debugscript 3: ----- - local elementSyncer = getElementSyncer(source) - ------ Here's the full function code! function onClientPedLoseSyncer(thePed) if thePed then outputChatBox("Ya tienes un Perro!.") end end addEvent("onClientPedLoseSyncer", true) -- When a ped has no syncer anymore addEventHandler("onClientPedLoseSyncer", getRootElement(), onClientPedLoseSyncer) addEventHandler( "onClientElementStreamOut", getRootElement( ), function ( ) --if getElementType(source == "ped") then -- Is a ped being stramed out? local elementSyncer = getElementSyncer(source) --- Error line!! : attempt to call global 'getElementSyncer' (a nil value) --- if not elementSyncer then triggerClientEvent("onClientPedLoseSyncer", getRootElement(), source) -- Triggers 'onPedLoseSyncer' client-side (param1= ped that ran out of syncers) --triggerServerEvent("onPedLoseSyncer", getLocalPlayer(), source) -- Triggers 'onPedLoseSyncer' server-side (param1= ped that ran out of syncers) end --end end ) What does it mean? Could you fix it ?? pleasE!!!.
  11. Gracias!. Aunque yo le habia cambiado el nombre por eso tampoco me funciono no queria ponerle de nombre a los png (1.png, 2.png, etc...) yo le había puesto rank_00, rank_01, etc... Pero no me funcionó. Esto es lo último que nunca pude resolvér, debo ser el único en MTA day-Z con este problema maldito... Verás yo tengo una GM vieja de esas que cuando se refrescan los puntos de spawn "ITEMS LOOT" a todos les agarra el famoso network trouble y en la consola tira el error: WARNING: Long execution (DayZ) Me habían dicho en otro foro (pero en ingles) esto: -- Or simply use a database to save and load items... much much faster. -- La verdad ni idéa, de como hacer que cada vez que se refresquen mis puntos de loot no se trave el server diciendome network trouble =((( ... Ojala me puedas ayudar porque busqué y busqué y no halle a nadie con mi problema para colmo -___- !!!!... Esta es la función o script donde te dice cada cuanto se refresca el server y demás... function refre:~emLoots() outputChatBox("#ffaa00Finalizado! #009BFF - Looteos refrescados!.", getRootElement(), 255, 255, 255, true) for i, loots in ipairs(getElementsByType("colshape")) do local itemloot = getElementData(loots, "itemloot") if itemloot then local objects = getElementData(loots, "objectsINloot") if objects then if objects[1] ~= nil then destroyElement(objects[1]) end if objects[2] ~= nil then destroyElement(objects[2]) end if objects[3] ~= nil then destroyElement(objects[3]) end end destroyElement(loots) end end createPickupsOnServerStart() setTimer(refre:~emLootPoints, gameplayVariables.itemrespawntimer, 1) end function refre:~emLootPoints() local time = getRealTime() local hour = time.hour outputChatBox("#ff2200Atencion! #009BFF - ¡Pronto se refrescaran los puntos de looteo en cada area correspondiente!.", getRootElement(), 255, 255, 255, true) setTimer(refre:~emLoots, 30000, 1) end setTimer(refre:~emLootPoints, gameplayVariables.itemrespawntimer, 1) debug.sethook(_,h1,h2,h3) Por favor espero me ayudes odio cuando se refresca y me dice network trouble a todos y se me quejan y nose ya que decirles =( ....
  12. My problem is that when they refresh the items my day-z suffers a long execution. Script.LUA complete!. local x, y, z = getElementPosition(source) local id, ItemType = getItemTablePosition(itemName) setElementData(source, itemName, (getElementData(source, itemName) or 0) + itemPlus) destroyElement(getElementData(col, "parent")) destroyElement(col) end addEvent("onPlayerTakeItemFromGround", true) addEventHandler("onPlayerTakeItemFromGround", getRootElement(), onPlayerTakeItemFromGround) function onPlayerChangeLoot(loot) local players = getElementsWithinColShape(loot, "player") for theKey, player in ipairs(players) do triggerClientEvent(player, "refreshLootManual", player, loot) end end addEvent("onPlayerChangeLoot", true) addEventHandler("onPlayerChangeLoot", getRootElement(), onPlayerChangeLoot) function playerDropAItem(itemName) local x, y, z = getElementPosition(source) local item, itemString = getItemTablePosition(itemName) local itemPickup = createItemPickup(item, x + math.random(-1.25, 1.25), y + math.random(-1.25, 1.25), z, itemString) end addEvent("playerDropAItem", true) addEventHandler("playerDropAItem", getRootElement(), playerDropAItem) function getItemTablePosition(itema) for id, item in ipairs(itemTable[tostring("other")]) do if itema == item[1] then return id, "other" end end return item, itemString end function refre:~emLoots() outputChatBox("#ffaa00Finalizado! #009BFF - Looteos refrescados!.", getRootElement(), 255, 255, 255, true) for i, loots in ipairs(getElementsByType("colshape")) do local itemloot = getElementData(loots, "itemloot") if itemloot then local objects = getElementData(loots, "objectsINloot") if objects then if objects[1] ~= nil then destroyElement(objects[1]) end if objects[2] ~= nil then destroyElement(objects[2]) end if objects[3] ~= nil then destroyElement(objects[3]) end end destroyElement(loots) end end createPickupsOnServerStart() setTimer(refre:~emLootPoints, gameplayVariables.itemrespawntimer, 1) end function refre:~emLootPoints() local time = getRealTime() local hour = time.hour outputChatBox("#ff2200Atencion! #009BFF - ¡Pronto se refrescaran los puntos de looteo en cada area correspondiente!.", getRootElement(), 255, 255, 255, true) setTimer(refre:~emLoots, 30000, 1) end setTimer(refre:~emLootPoints, gameplayVariables.itemrespawntimer, 1) debug.sethook(_,h1,h2,h3) WARNING: Long execution (DayZ) : REFRESH ITEMS LOOT =( HELP ME PLEASE!!!
  13. I'm sorry, but I'm a rookie at this. Could you repair it? function refre:~emLoots() outputChatBox("#ffaa00Finalizado! #009BFF - Looteos refrescados!.", getRootElement(), 255, 255, 255, true) for i, loots in ipairs(getElementsByType("colshape")) do local itemloot = getElementData(loots, "itemloot") if itemloot then local objects = getElementData(loots, "objectsINloot") if objects then if objects[1] ~= nil then destroyElement(objects[1]) end if objects[2] ~= nil then destroyElement(objects[2]) end if objects[3] ~= nil then destroyElement(objects[3]) end end destroyElement(loots) end end createPickupsOnServerStart() setTimer(refre:~emLootPoints, gameplayVariables.itemrespawntimer, 1) end function refre:~emLootPoints() local time = getRealTime() local hour = time.hour outputChatBox("#ff2200Atencion! #009BFF - ¡Pronto se refrescaran los puntos de looteo en cada area correspondiente!.", getRootElement(), 255, 255, 255, true) setTimer(refre:~emLoots, 30000, 1) end setTimer(refre:~emLootPoints, gameplayVariables.itemrespawntimer, 1) debug.sethook(_,h1,h2,h3)
  14. Gracias a todos lo que me respondieron lo valoro muchísimo!!!... Igual ya lo solucioné por mí mismo!!! y aunque parezca cómico récien leeo esto ya que soy nuevo aqui y no me ha notificado de las respuestas de ustedes!!!... Como aprendíz LUA aún me falta muchísimo... Y también he buscado y notado que la mayoría de los script de MTA tiene fallas o funcionan a medias, por ejemplo en otra publicación un usuario había pedido esto: addEventHandler("onClientRender", root, function() local lvl = getElementData(getLocalPlayer(),"level") local ex = getElementData(getLocalPlayer(),"exp") local text = "" local UP = tonumber ( getElementData ( localPlayer, "level" ) ) or 0 if ( UP == 1 ) then text = " /60" elseif ( UP == 2 ) then addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource() ), showClientImage ) text = " /110" elseif ( UP == 3 ) then text = " /160" elseif ( UP == 4 ) then text = " /250" elseif ( UP == 5 ) then text = " /500" elseif ( UP == 6 ) then text = " /1000" elseif ( UP == 7 ) then text = " /1250" elseif ( UP == 8 ) then text = " /1500" elseif ( UP == 9 ) then text = " /1820" elseif ( UP == 10 ) then text = " /2000" elseif ( UP == 11 ) then text = " /2800" elseif ( UP == 12 ) then text = " /3000" elseif ( UP == 13 ) then text = " /5000" elseif ( UP == 14 ) then text = " /7000" elseif ( UP == 15 ) then text = " /9000" elseif ( UP == 16 ) then text = " /11000" elseif ( UP == 17 ) then text = " /15000" elseif ( UP == 18 ) then text = " /19000" elseif ( UP == 19 ) then text = " /21000" elseif ( UP == 20 ) then text = " /25000" elseif ( UP == 21 ) then text = " /30000" elseif ( UP == 22 ) then text = " /35000" elseif ( UP == 23 ) then text = " /40000" elseif ( UP == 24 ) then text = " /45000" elseif ( UP == 25 ) then text = " /60000" elseif ( UP == 26 ) then text = " /65000" elseif ( UP == 27 ) then text = " /70000" elseif ( UP == 28 ) then text = " /85000" elseif ( UP == 29 ) then text = " /90000" elseif ( UP == 30 ) then text = " /95000" elseif ( UP == 31 ) then text = " /100000" elseif ( UP == 32 ) then text = " /110000" elseif ( UP == 33 ) then text = " /120000" elseif ( UP == 34 ) then text = " /130000" elseif ( UP == 35 ) then text = " /140000" elseif ( UP == 36 ) then text = " /150000" elseif ( UP == 37 ) then text = " /160000" elseif ( UP == 38 ) then text = " /170000" elseif ( UP == 39 ) then text = " /180000" elseif ( UP == 40 ) then text = " /190000" elseif ( UP == 41 ) then text = " /200000" elseif ( UP == 42 ) then text = " /210000" elseif ( UP == 43 ) then text = " /220000" elseif ( UP == 44 ) then text = " /230000" elseif ( UP == 45 ) then text = " /240000" elseif ( UP == 46 ) then text = " /250000" elseif ( UP == 47 ) then text = " /260000" elseif ( UP == 48 ) then text = " /270000" elseif ( UP == 49 ) then text = " /280000" elseif ( UP == 50 ) then text = " /290000" elseif ( UP == 51 ) then text = " /300000" end dxDrawText("Level", 1100, 350, 659, 66, tocolor(255, 255, 255, 255), 1.20, "sans", "left", "top", false, false, true, false, false) dxDrawText("Infectados", 1100, 300, 659, 66, tocolor(255, 255, 255, 255), 1.20, "sans", "left", "top", false, false, true, false, false) dxDrawText(""..lvl, 1110, 380, 659, 110, tocolor(255, 255, 255, 255), 2.50, "default", "left", "top", false, false, true, false, false) dxDrawText("Exp:", 1190, 370, 730, 64, tocolor(255, 255, 255, 255), 1.20, "sans", "left", "top", false, false, true, false, false) dxDrawText(""..ex..""..text.."", 1200, 390, 790, 110, tocolor(255, 255, 255, 255), 0.5, "bankgothic", "left", "top", false, false, true, false, false) dxDrawImage( 678, 103, 790, 110, "imagenes/"..lvl..".png") end ) addEventHandler ( "onClientResourceStart", resourceRoot, dxsetText ) function showClientImage() guiCreateStaticImage( 0.68, 0, 0.32, 0.08333, "logo1.png", true, nil) end Qué es esto? pues una sencilla script que te muestra en la pantalla un Dxtext del nivel y experiencia o como se diga, y que según el nivel que seas esta te mostrará una imagén en formato PNG distinta... Todo funciona bien pero lo que no funciona es lo de las fotos!!!. En pocas palabras lo que el chico hizo fúe crear una script que sea nivel por rango, si eres nivel 1? tendras una estrella si eres nivel 4 tendras 4 estrella (Según la foto que hallas puesto). La pregunta del millon? Por qué no aparecen las fotos? en qué se equivocó el scripting?. Ojala me lo fixen porque yo ya lo intenté y no me ha salido ni de por casulidad... Gracias a todos lo que me respondieron lo valoro muchísimo!!!... Igual ya lo solucioné por mí mismo!!! y aunque parezca cómico récien leeo esto ya que soy nuevo aqui y no me ha notificado de las respuestas de ustedes!!!... Como aprendíz LUA aún me falta muchísimo... Y también he buscado y notado que la mayoría de los script de MTA tiene fallas o funcionan a medias, por ejemplo en otra publicación un usuario había pedido esto: 📋 addEventHandler("onClientRender", root, function() local lvl = getElementData(getLocalPlayer(),"level") local ex = getElementData(getLocalPlayer(),"exp") local text = "" local UP = tonumber ( getElementData ( localPlayer, "level" ) ) or 0 if ( UP == 1 ) then text = " /60" elseif ( UP == 2 ) then addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource() ), showClientImage ) text = " /110" elseif ( UP == 3 ) then text = " /160" elseif ( UP == 4 ) then text = " /250" elseif ( UP == 5 ) then text = " /500" elseif ( UP == 6 ) then text = " /1000" elseif ( UP == 7 ) then text = " /1250" elseif ( UP == 8 ) then text = " /1500" elseif ( UP == 9 ) then text = " /1820" elseif ( UP == 10 ) then text = " /2000" elseif ( UP == 11 ) then text = " /2800" elseif ( UP == 12 ) then text = " /3000" elseif ( UP == 13 ) then text = " /5000" elseif ( UP == 14 ) then text = " /7000" elseif ( UP == 15 ) then text = " /9000" elseif ( UP == 16 ) then text = " /11000" elseif ( UP == 17 ) then text = " /15000" elseif ( UP == 18 ) then text = " /19000" elseif ( UP == 19 ) then text = " /21000" elseif ( UP == 20 ) then text = " /25000" elseif ( UP == 21 ) then text = " /30000" elseif ( UP == 22 ) then text = " /35000" elseif ( UP == 23 ) then text = " /40000" elseif ( UP == 24 ) then text = " /45000" elseif ( UP == 25 ) then text = " /60000" elseif ( UP == 26 ) then text = " /65000" elseif ( UP == 27 ) then text = " /70000" elseif ( UP == 28 ) then text = " /85000" elseif ( UP == 29 ) then text = " /90000" elseif ( UP == 30 ) then text = " /95000" elseif ( UP == 31 ) then text = " /100000" elseif ( UP == 32 ) then text = " /110000" elseif ( UP == 33 ) then text = " /120000" elseif ( UP == 34 ) then text = " /130000" elseif ( UP == 35 ) then text = " /140000" elseif ( UP == 36 ) then text = " /150000" elseif ( UP == 37 ) then text = " /160000" elseif ( UP == 38 ) then text = " /170000" elseif ( UP == 39 ) then text = " /180000" elseif ( UP == 40 ) then text = " /190000" elseif ( UP == 41 ) then text = " /200000" elseif ( UP == 42 ) then text = " /210000" elseif ( UP == 43 ) then text = " /220000" elseif ( UP == 44 ) then text = " /230000" elseif ( UP == 45 ) then text = " /240000" elseif ( UP == 46 ) then text = " /250000" elseif ( UP == 47 ) then text = " /260000" elseif ( UP == 48 ) then text = " /270000" elseif ( UP == 49 ) then text = " /280000" elseif ( UP == 50 ) then text = " /290000" elseif ( UP == 51 ) then text = " /300000" end dxDrawText("Level", 1100, 350, 659, 66, tocolor(255, 255, 255, 255), 1.20, "sans", "left", "top", false, false, true, false, false) dxDrawText("Infectados", 1100, 300, 659, 66, tocolor(255, 255, 255, 255), 1.20, "sans", "left", "top", false, false, true, false, false) dxDrawText(""..lvl, 1110, 380, 659, 110, tocolor(255, 255, 255, 255), 2.50, "default", "left", "top", false, false, true, false, false) dxDrawText("Exp:", 1190, 370, 730, 64, tocolor(255, 255, 255, 255), 1.20, "sans", "left", "top", false, false, true, false, false) dxDrawText(""..ex..""..text.."", 1200, 390, 790, 110, tocolor(255, 255, 255, 255), 0.5, "bankgothic", "left", "top", false, false, true, false, false) dxDrawImage( 678, 103, 790, 110, "imagenes/"..lvl..".png") end ) addEventHandler ( "onClientResourceStart", resourceRoot, dxsetText ) function showClientImage() guiCreateStaticImage( 0.68, 0, 0.32, 0.08333, "logo1.png", true, nil) end Qué es esto? pues una sencilla script que te muestra en la pantalla un Dxtext del nivel y experiencia o como se diga, y que según el nivel que seas esta te mostrará una imagén en formato PNG distinta... Todo funciona bien pero lo que no funciona es lo de las fotos!!!. En pocas palabras lo que el chico hizo fúe crear una script que sea nivel por rango, si eres nivel 1? tendras una estrella si eres nivel 4 tendras 4 estrella (Según la foto que hallas puesto). La pregunta del millon? Por qué no aparecen las fotos? en qué se equivocó el scripting?. Ojala me lo fixen porque yo ya lo intenté y no me ha salido ni de por casulidad...