• Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About AlvarO

  • Rank
    Punk-@ss B*tch


  • Gang

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I used all the info that wiki shows, and I don't have anything: local dot = dxCreateTexture(1, 1) function dxDrawRectangle3D(x,y,z,w,h,c,r,...) local lx, ly, lz = x+w, y+h, (z+tonumber(r or 0)) or z return dxDrawMaterialLine3D(x,y,z, lx, ly, lz, dot, h, c or tocolor(255,255,255,255), ...) end addEventHandler("onClientRender", root, function() dxDrawRectangle3D(0,0, 30, 100, 100, tocolor(255,255,255,255)) end )
  2. Try to use attachElements function
  3. I modified what I wrote for you, and found that the problem is the animation, tried other one and works fine, here you have the code: function test(player, cmd, target) local targetPlayer = getPlayerFromPartialName(target) if targetPlayer then setPedAnimation(targetPlayer, "ped", "WOMAN_walknorm") else outputChatBox("Sorry, we don't know a person called " .. target, player, 255, 0, 0) end end addCommandHandler("xy", test) function getPlayerFromPartialName(name) local name = name and name:gsub("#%x%x%x%x%x%x", ""):lower() or nil if name then for _, player in ipairs(getElementsByType("player")) do local name_ = getPlayerName(player):gsub("#%x%x%x%x%x%x", ""):lower() if name_:find(name, 1, true) then return player end end end end
  4. Try this: function test(thePlayer) local targetPlayer = getPlayerFromName (thePlayer) if targetPlayer then setPedAnimation(targetPlayer, "ped", "bom_plan", -1, false, false, false, false) else outputChatBox("Error, we can't find a player with that name!") end end addCommandHandler("xy", test) You should write the command as this: /xy <playerName>
  5. I would use this: local marker = createMarker (0, 0, 0, "cylinder", 1.5, 255, 255, 0, 170 ) function playerJoinMarker() addEventHandler("onClientRender", getRootElement(), drawMarkerPanel) end addEventHandler( "onMarkerHit", marker, playerJoinMarker) function drawMarkerPanel() --YOU CAN DRAW HERE YOUR PANEL, ALSO, ADD A CLOSE BUTTON WHICH REMOVE THE onClientRender EVENT end
  6. I think you didn't understand me, i want to create from a square image to something like this:
  7. I think this is your solution: guiSetVisible ( guiElement, state )
  8. Hey, so I was just thinking and found no way to draw a rounded image, just came to my mind to postGUI an image with an empty hole, but well, is there a method to draw images rounded by itself?
  9. I usually use that trick: (In my case, my resolution is 1920 x 1080, so if you have any other resolution just change the values instead of yours.) local sX, sY = guiGetScreenSize() function drawRectangle() dxDrawRectangle((1770/1920)*sX, (25/1080)*sY, (100/1920)*sX, (50/1080)*sY, tocolor(0, 0, 0, 200), false) end addEventHandler("onClientRender", root, drawRectangle) But you said if there was a method that made it easier, only comes to my mind to do something like this: local sx, sy = guiGetScreenSize() local px, py = 1920, 1080 local x, y = (sx/px), (sy/py) function drawRectangle() dxDrawRectangle(x*285, y*143, x*800, y*350, tocolor(0, 0, 0, 220), true) end addEventHandler("onClientRender", root, drawRectangle) In px and py you just have to put your resolution and just draw any element as is shown up. Hope I helped you!
  10. Okay, post again if you have any question.
  11. Try to decrease it while player is moving, so you have to use getElementPosition() and make a relation from the sound and the player and for x distance decrease it, its weird that it doesnt decrease by itself...
  12. AlvarO

    Down arrow bug

    Okay, thanks you, it worked!
  13. AlvarO

    Down arrow bug
  14. AlvarO

    Down arrow bug