Jump to content

stefutz101

Members
  • Posts

    245
  • Joined

  • Last visited

Everything posted by stefutz101

  1. Lol i did it without tables. aprox 15 lines of code
  2. Nope. The name appear in top left of the screen. Still don't work.
  3. local x, y = getElementPosition(player) local sx,sy = guiGetScreenSize() local Resx = "Put X here" local Resy = "Put Y here" x = (x/6000)*Resx*(1*sx) y = (y/6000)*Resy *(1*sy) Did you mean 1/sx and 1/xy ? Resx ,Resy = x , y from minimap ?
  4. local x, y = getElementPosition(player) local sx,sy = guiGetScreenSize() local valuea, valueb = 1/sx,1/sy x = x/6000*1/sx-- Resx Put how big your mini map is in X y = y/6000*1/sy-- Resy Put how big your mini map is in y Like this ? Or i am wrong ?
  5. I will try. EDIT: It don't works . F11 map is a png with size 1024x1024 . But on my screen is 768x768 px. https://postimg.org/image/f7wnxe9mv/
  6. Hi . I want to know how to calculate coords on the minimap (F11) from world coords. I found something like this : local x, y = getElementPosition(player) x = math.floor((x + 3000) * 1024 / 6000) + 10 y = math.floor((3000 - y) * 1024 / 6000) - 10 Thanks in advance .
  7. I don't need a table to do that .
  8. Hi everyone , i'm working at a resource what make a car invulnerable when driver type /park , when he leaves car it becomes vulnerable . This is normal ? PS i used this function : setVehicleDamageProof
  9. stefutz101

    Can't use gui

    https://pastebin.mtasa.com/701348468v look . This is from my friend(that can't use gui window)
  10. stefutz101

    Can't use gui

    Hi , some players from my server tell me they cant use gui resources from my server. When they open a gui window they see it like a photo , so they can't click on nothing. I don't have that problem but i know someone what does. The problem is from my server or from their pc ? I don't have that problem and most of players (like 97 %)
  11. Hi everybody. 3 days ago i found a player what can't use gui resources. I mean he see that gui window like a photo . How i can fix that ? That problem is from my server ? Anyone how that this problem ?
  12. Fixed . Thanks to anyone what was trying to help me .
  13. There is actually a limit you can't set distance bigger than 300. "However, there is a general draw distance limit of 300 units. So engineSetModelLODDistance(1337,400) will mean model 1337 will be visible up to a distance of 300 units no matter what the 'Video' tab says." from wiki.
  14. Open your gamemode files one by one press ctrl + f and try to find this "onRequesMapName". Paste here all lines what contain that name(you must have minim 3.) JUST lines.
  15. How many slots your new backpack have ? Your coyote have 36 slots ?
  16. From : https://forum.multitheftauto.com/viewtopic.php?f=91&t=28106 Look. That's why i changed the image width. Still i don't have any ideea how to fix that.
  17. How many slots your backpack have ? If it have 26 you must change here : if newValue == 26 then attachElementToBone(elementBackpack[source], source, 3, 0, -0.16, 0.05, 270, 0, 180) else attachElementToBone(elementBackpack[source], source, 3, 0, -0.225, 0.05, 90, 0, 0) end else here if newValue == 26 then attachElementToBone(elementBackpack[source], source, 3, 0, -0.16, 0.05, 270, 0, 180) else attachElementToBone(elementBackpack[source], source, 3, 0, -0.225, 0.05, 90, 0, 0) end Try to change that numbers with : 0 , 90 , 180 , 270 . Like 90,0,90 or 90,0,180 or 90,0,270 ,etc
  18. Are you sure you copied full line ? createObject(363, x, y, z ,) after that last "," must be other 3 coords.
  19. We can't guess what's the backpack position or id , you must find that line which create that object and change the object rotation .
  20. You can simply make a row in your scoreboard wich looks exactly like a player row , or you can simply connect from another device on server
  21. Same problem . I can't fix it fuck off. Look , the code : local x = (((getElementData(getLocalPlayer(),"blood") or 0)/12000)*485)/screenW dxDrawImageSection(screenW * 0.6340, screenH * 0.0130, screenW * x , screenH * 0.5534, 0, 0,((getElementData(getLocalPlayer(),"blood") or 0)/12000)*425, 425, ":DayZ/images/health.png", 0, 0, 0, tocolor(r, g, b, 170), false) Image have resolution : 425x425 px. But i want draw it at 485x425 px. 2 Problems : 1) my resolution : (1366x768x32) https://s31.postimg.org/6ujkt0rq3/mta_s ... _35_54.png my friend resolution (1280x1024x32) https://s32.postimg.org/8lht9awz9/mta_s ... _05_05.png 2) at 3000 blood health bar is still empty . I don't know how to fix this thing , i don't know why it works at me , but my friend have that visual bug ... . PS : getElementData(getLocalPlayer(),"blood") = 3000 (3000/12000)*485 = 121.25 (3000 * 485)/12000 = 121.25 It is the same thing , not this is the problem ...
  22. I fixed it . Not this was problem . But thanks anyway Now i have another question : Why at 3000 blood , it looks like 0 blood , i mean that health bar is empty . Why it is imprecise ?
  23. So anyone know where the mistake came from ?
×
×
  • Create New...