-
Posts
6,097 -
Joined
-
Last visited
-
Days Won
218
Everything posted by IIYAMA
-
Does that mean you don't have to try making your own version? You are at the scripting section, not at resource section. Next time first search for the resource and if you 100% can't find it, ask at the scripting section.
-
"urgent" That depends how seriously you are going to try this. https://wiki.multitheftauto.com/wiki/AddCommandHandler https://wiki.multitheftauto.com/wiki/DoesPedHaveJetPack https://wiki.multitheftauto.com/wiki/GivePedJetPack https://wiki.multitheftauto.com/wiki/RemovePedJetPack
-
serverside https://wiki.multitheftauto.com/wiki/OnPlayerChat http://lua-users.org/wiki/PatternsTutorial https://wiki.multitheftauto.com/wiki/TriggerClientEvent clientside https://wiki.multitheftauto.com/wiki/GetChatboxLayout https://wiki.multitheftauto.com/wiki/OnClientRender https://wiki.multitheftauto.com/wiki/DxDrawImage
-
It is an effect, not something critical.
-
If you base it on time, you won't have smooth animated alpha.
-
[quote name=..&G:..]This is from the MTA Paradise gamemode, any ideas, any one how to fix it? You can try this to solve the warning. local width = (dxGetTextWidth( v.name, 1, "clear" ) or 0 ) + 20 But it is better to edit MTA Paradise and fix it there. This is only a temporary/not bug free way of doing. WUT! there is a smiley in your name. O_o
-
https://wiki.multitheftauto.com/wiki/DxDrawImage Drop down those values. try: 150,150,150 or 50,50,50 and it will lose it's colors. Just play with the values and it will be al right. If you have photoshop: You can also open the hud in photoshop change it to gray colors (and save your action). If you are good with photoshop you can use a batch or a standard scripts to change them all with one click.
-
try this: (not tested) local variable = 0 local stateOfAlphaChanging = false function changeVariables() local vehicle = getPedOccupiedVehicle(localPlayer) if vehicle then dxDrawText(200,300,tostring(getElementAlpha(vehicle))) -- debug if stateOfAlphaChanging then variable = variable + 0.1 else variable = variable - 0.1 end if variable < 0 then stateOfAlphaChanging = true variable = 0--reset elseif variable > 255 then stateOfAlphaChanging = false variable = 255--reset end setElementAlpha(vehicle, variable) end end addEventHandler("onClientRender",root,changeVariables) 1 extra variable is managing the state of the alpha change.
-
By using your frames per second? FPS https://wiki.multitheftauto.com/wiki/OnClientRender It can't be smoother then that, you won't see the differences if you do it faster.
-
v.name is nil or false or something else invalid. So dxGetTextWidth returns false. Which means you can't count up 20 at a variable which is false. You have to check the source of where this value has been created.
-
Yea, vector formats would be great. It must be possible, there are plugins for lua. But mta must support it too.
-
"insanity" Try me on another forum. I already helped you on another topic, "with scripting", but I am not going to help you with this. This topic should not be here, it is annoying and it makes starters follow your behaviour, which is a bad habit. If I wanted to help you with this problem, I would go to the request section. I am not only speaking for myself but also for many scripters who have the same opinion about this. Got it? You are 15 years old(if it is valid), this must not be too hard to understand for you.
-
Serverside get triggerClientEvent or setElementData(resourceRoot, Client getElementData(resourceRoot,
-
Nobody helps a nobody, it suits one of your comments. Except you are wrong about that, many people have tried and you just wasted their time. I never called you that anyway, you are only acting like one. It is a shame that you have to make a joke out of it. Just try to understand why they don't give the answers you want and why people reply negative comments on annoying and wrong placed posts like this.
-
Pardon? You really think I am that stupid? Nobody wants to write your code unless they are as stupid as your dog. If you want that, you should start paying people or trading with them. You can trade with maps(home made) <> scripts(home made) <> userwork(home made) etc. and if you have nothing to trade, you are a nobody. Nobody can help a "nobody". BUT THIS IS NOT A SECTION FOR THAT, THIS IS FOR HELPING WITH SCRIPTING AND YOU ARE NOT INTERESTED IN THAT. YOU JUST WANT YOUR CODE THAT'S ALL.
-
local tableRange = 0 for key,data in pairs(test.test2) do tableRange = tableRange+1 end outputChatBox(tableRange) Tables without using the array can't use #. If this table had an array it would only have numbers as index.
-
WRONG SECTION Seriously when do people read the basic rules. Something wrong with you yoya?
-
You are doing the same. -_-" There is no account data on clientside. if Rank then local lvl = getElementData(localPlayer, "Level") if lvl then dxDrawImage((210/1024)*sWidth, (738/768)*sHeight, (31/1024)*sWidth, (31/768)*sHeight, ":bla2/ranks/lvl_" .. tostring(lvl) .. ".png", 0, 0, 0, tocolor(255, 255, 255, 255), true) end else local lvl = getElementData(localPlayer, "Level") if lvl then dxDrawImage((210/1024)*sWidth, (738/768)*sHeight, (31/1024)*sWidth, (31/768)*sHeight, ":bla2/ranks/lvl_" .. tostring(lvl) .. ".png", 0, 0, 0, tocolor(255, 255, 255, 255), true) end end
-
You can't guarantee that the player always carries element data. if lvl then anyway line 5 has no access to that variable.
-
You can also prevent the explosions of the vehicles, but this will not prevent them to be able blown. https://wiki.multitheftauto.com/wiki/OnClientExplosion You can cancel: 4: Car 5: Car Quick 6: Boat 7: Heli local cancelTheseTypes = { [4]=true, [5]=true, [6]=true, [7]=true } addEventHandler("onClientExplosion",root, function (x,y,z,theType) if cancelTheseTypes[theType] then cancelEvent() end end) Note: sometimes heli/planes explode using the rocket explosion. (happens when they are already exploded and they get rammed/hit by anything.
-
I found one example: https://wiki.multitheftauto.com/wiki/Ma ... g_Matrices and I already had found the classes: https://wiki.multitheftauto.com/wiki/Matrix But mta source code, I have never looked in to that. Where can I place this location of yours?
-
There are not examples for that on the wiki, only that they do exist.
-
It never gives an error, unless it has been destroyed by another script.
