-
Posts
6,063 -
Joined
-
Last visited
-
Days Won
209
Everything posted by IIYAMA
-
Why don't you show us some screenshots?
-
1- Just recreate it after a while. 2- Set it to another position. 3- Set it to another dimension or interior.
-
The only thing you have to know, is that everything which isn't using the lua memory is SLOWER. (elementdata slow, accountdata/databases very slow and xml very very slow) You may can say they are fast enough, but lua memory is more or less optimised memory for quick use. Lua memory > variables. (which can hold: strings, numbers, tables, nil's, functions, boolean's etc....)
-
what is wrong with account data? https://wiki.multitheftauto.com/wiki/SetAccountData If you haven't 1000+ of players in your server, accountdata will do the job.
-
Then use a replaced object. (and disabled the collision) or create effects. Possibility's enough, good luck.
-
Make two small scripts, with this content you posted here. and zip it so I can test/check it.
-
huh? what do you mean? Resource? It can speed up, because you can change the texture format. It may will take extra time to load it when you use something else then 'argb', but after it is all loaded as a "dxt5" you can speed up drawing. I am not sure if the rendertarget stay in to the GPU memory as you probably was trying to say. But since it is variable it is already in to the lua memory, I don't think this texture is much different from other textures.
-
Not really lame, It has a lot of benefits: - You can speed up drawing. - You can edit the images. (and export them as images) - Never have to recreate those textures again.
-
It is just what the server owners want to run on their servers, if they want cheats they get cheats, if they want to run stolen resources, be my quest. But asking people to fix random code which doesn't belong to them, that is sick. You should contact the owner for permissions to do that.
-
Then we can't help you, stolen/illegal software isn't supported here.
-
Go to the ones you bought the script from. If you didn't buy it, then probably will help you with this.
-
did you checked p before the loop? To be honest it is a strange error, but please check your variables first.
-
Afaik I it will be 1 thing. I was yesterday working with render targets. But if you want to be sure. You can use dxGetTexturePixels from that texture and set it back to a new texture. https://wiki.multitheftauto.com/wiki/DxGetTexturePixels So you also won't have problems losing the render target while using alt+tab.
-
no indeed it shouldn't, but we are playing on a game modification which get updates all the time, so you never know. When you start ones of those resources the only error/warning you got is from the export? (Code doesn't loaded because of an error before) Well I can only gamble what is going wrong... code looks just fine.
-
LekRoots, addEventHandler missing? https://wiki.multitheftauto.com/wiki/OnClientRender and one end and remove that. return and use as king did. elseif
-
He means that you can't calling from serverside a client function. Which you aren't doing afaik, but if you haven't checked that, check it. Else. What if you don't attach that event handler? I know it is probably not the problem, but to be honest I have never attached addEventHandlers to my export functions. You also have to mind timing of the scripts. If you start both scripts at the same time, there is always one faster loaded. Which will most of the time go wrong when you have included other resources in the meta.xml. (the first export will fail in this case)
-
Because I am not reading every word of the forum? Not sure what kind of super human you are. If you don't want to check if a script is running, then you get warnings and when you get warnings you get a little bit lagg. and not only that little bit lagg, your server logs will be filled with it and your server will be starting slower while accessing the logs. But I won't say anything more about that, it's your own responsibility. bla bla bla..... Post the function you are trying to access. (and what kind of file it is in)
-
Have you ever changed something to relative manualy? Using math. Do you know what a relative value is? Did you ever had % at school? because it is something simular then that. (except you use it as multiplier to change other values)
-
@LekRoots Because write the code manualy is always better in quality, performance and managing. and it is hard to move dx gui's. @'LinKin What if you try a black static image as background? But you lose the move/scale ability with the cursor.
-
function findRotation(x1,y1,x2,y2) local t = -math.deg(math.atan2(x2-x1,y2-y1)) if t < 0 then t = t + 360 end; return t; end rot = findRotation(x,y, x + 0.5 ,y ) https://wiki.multitheftauto.com/wiki/FindRotation
-
Ever heard of debugging? /debugscript 3 local resource = getResourceFromName ( "cspawn" ) if resource then local state = getResourceState (resource) if state == "running" then call (resource, "otherTestFunction", localPlayer ) else outputDebugString("Resource isn't running but: " .. state) end else outputDebugString("resource doesn't exist, ") end
-
(facepalm). What if a player did: /setsoundistance "5" ! Then it still will be a nil. outputChatBox = outputChatBox or print -- For lua demo utility. outputChatBox(tonumber(tostring('"5"')))
-
@mega, Why are you calling that function multiple times? If you are drawing stuff, overheating your code is the last thing you want.
-
local health = math.ceil(getElementHealth(localPlayer)) if health > 0 then if health <= 5 then dxDrawImage(x*0.785, y*0.200, 30, 35, "health/05.png", 0, 0, 0, tocolor(0, 0, 0, 255), true) elseif health <= 10 then -- etc.