stefutz101
Members-
Posts
245 -
Joined
-
Last visited
Everything posted by stefutz101
-
Fixed. Thanks a lot !
-
Lol i did it without tables. aprox 15 lines of code
-
Nope. The name appear in top left of the screen. Still don't work.
-
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 ?
-
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 ?
-
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/
-
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 .
-
I don't need a table to do that .
-
What's the best solution ?
-
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
-
https://pastebin.mtasa.com/701348468v look . This is from my friend(that can't use gui window)
-
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 %)
-
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 ?
-
Fixed . Thanks to anyone what was trying to help me .
-
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.
-
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.
-
How many slots your new backpack have ? Your coyote have 36 slots ?
-
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.
-
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
-
Are you sure you copied full line ? createObject(363, x, y, z ,) after that last "," must be other 3 coords.
-
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 .
-
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
-
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 ...
-
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 ?
-
So anyone know where the mistake came from ?