Jump to content

Enigma666

Members
  • Posts

    20
  • Joined

  • Last visited

Everything posted by Enigma666

  1. Hello, is there a way to regenerate the map image? Im thinking about using a whole different land with new roads, and id need a map image for that for the radar. Idk if its the right section, but is there any way, outside or inside MTA to do this? Thanks.
  2. Hello, Is it possible to have a ped with its full functionality in front of dx Image, or is there any way really to create that? Im creating a character creation system and id need the ped to be able to rotate, do animations or stuff in front of the menu background. Any way? Maybe textures? Thanks.
  3. i think the camera rotates, but keeps looking at the position it was looking at before the rotation.
  4. function getPositionFromElementOffset(element,offX,offY,offZ) local m = getElementMatrix (element) local x = offX * m[1][1] + offY * m[2][1] + offZ * m[3][1] + m[4][1] local y = offX * m[1][2] + offY * m[2][2] + offZ * m[3][2] + m[4][2] local z = offX * m[1][3] + offY * m[2][3] + offZ * m[3][3] + m[4][3] return x, y, z end addEventHandler("onClientRender", getRootElement(), function() local x,y,z = getPositionFromElementOffset(localPlayer, 0.5, -3, 0.5) setCameraMatrix(x, y, z, x, y, z) end ) I have this. works fine as i said, but if i press D for example when im standing, the camera doesnt follow the players rotation to the angle, and idk which part of the matrix is supposed to do that.
  5. got the position part, gotta have a few problems with rotation tho.
  6. Hi. Is something like this possible in MTA? Im talking about the camera being a little offset and not centered [not when shooting, by default], if so, is it also possible to make it work with the default camera rotation? Thanks.
  7. Hey. Does anyone know the anim that was used when CJ robs houses in the default GTA SA? Im trying to redo the robbing system. Also is there a function for the Box Holding thing? Thanks in advice.
  8. Well i have basically no idea what you are talking about really.. lol
  9. Yes, im aware of the moving part, its just the rendering part, which im not really aware of. The basic idea is a list, on scroll one less shows at top, and one more shows up at bottom. I dont think that this offset way does that.
  10. Wel, i have no idea how to do it.
  11. That is exactly what i need. The rendering part. [yep, failed at maths last year]
  12. How does that help me at all?..
  13. Enigma666

    Scrolling

    Hi, What i want to make is a list, that can only draw out, for example 15 players. If i scroll down, one less at top, and one new comes at the bottom, so basically just like how scoreboards work. I know the required events and all that. Ive been having this problem for a while and couldnt figure it out. Thanks.
  14. Hi so what i currently have is this. addEventHandler("onClientResourceStart", getResourceRootElement(), function() testPed = createPed(7, -2720.26, 498, 7.07) outputChatBox(tostring(isElementStreamedIn(testPed))) end ) Im trying to start on a nametag system but this is causing me problems. I need peds to be inserted into a table because my peds have nametags too. I just set up this test code, to test out things. [Yes, the ped is right next to me] Any ideas?
  15. Hi, so recently i wrote a login panel using DX Elements for drawing, and normal GUI for inputs. I use onClientClick for the buttons, which are drawn using dxDrawImage. If i use showCursor(true), the inputs wont work, even if i use guiSetInputEnabled. If i dont use showCursor, then the onClientClick event wont work. This only happens on a linux server, it worked perfectly under a windows server. Any ideas?
  16. playSound3D is client side, isnt it?
  17. Hello, So, i have, for example, a car lock opening sound. Now i want that sound to play for every player in a certain distance, when a certain event is triggered. I want it to work like how playSound3D does, so if i go further from that place, the sound volume is a bit lower. How can i do that? Thanks.
×
×
  • Create New...