-
Posts
6,097 -
Joined
-
Last visited
-
Days Won
218
Everything posted by IIYAMA
-
Well why don't you check if he is in a vehicle? Here you can find your solution/solutions. https://wiki.multitheftauto.com/wiki/Se ... _Functions
-
1. It laggs. 2. Synchronisation problems. 3. I doubt all bullets of a minigun will be synced. Since they get created every render frame.
-
keep your patience addEventHandler ("onClientGUIClick", resourceRoot, addEventHandler ("onClientGUIClick", root,
-
Yes ARGB, has the best quality. When I compare ARGB to DXT5, I hardly see any differences. I am not going to use DXT1 and DXT3, DXT5 fits in as replacement of ARGB. I am even recommend you it to use DXT5, in your scripts. ("large" images) Also convert the images to textures (local variables) also does speed up your lua memory and quality of textures are better then from files. Less people complaining about lagg, it is what you want. My main question was, "does it also counts for shaders". But yes it does when I think with logic.
-
did you ever worked with time? At school? Your setup: local timeStart = getTickCount() -- get the computer time of this moment local animationTime = 3000 -- 3 seconds -- This is how long your animation would take, --futureTime = timeNow + 3000 -- the time now + 3 seconds, this is when the animation part should stop Calculate the progress:(this is when you are drawing your text) local timeNow = getTickCount() -- get the computer time of this moment local differences = timeNow - timeStart -- calculate the differences between the start time of the animation and the time now of this moment. local progress = differences/animationTime -- factor = multiplier --------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------- -- invert the progress? -- --progress = 1-progress ------------------------------ if progress <= 0 then -- check if the animation hasn't ended yet. local yourTextPosition = progress*distance end It is some basic math, to calculate progress. Or you can do it with a lot of timers, which I will not recommend.(and that isn't very smooth)
-
I am not blind, I am asking this question because of the article. A shader is something I haven't much experience with, so I wanted to know that for 100% sure.
-
--server addEventHandler("onResourceStart",resourceRoot, function () local variable = "lol" setElementData(resourceRoot,"thisIsFunny",variable) end) --client addEventHandler("onClientResourceStart",resourceRoot, function() variable = getElementData(resourceRoot,"thisIsFunny") end)
-
triggerClientEvent setElementData
-
ah, thank you very much ixjf.
-
Pls only reply if you know what a shader is. If I replace the world-texture and I convert the texture(element) format to dxt5, will it still use 4 times less memory? local texture = dxCreateTexture ( "text.png","dxt5") if texture then dxSetShaderValue(texShader,"gTexture",texture) engineApplyShaderToWorldTexture(texShader,indexName) end
-
So index: __newindex will be called when inserting new data? and index: __index will be called when requesting a key in the table?
-
Discussing illegal software on a public forum. That is what you did, like many others still do. I don't blame you for that , but in my opinion it is disrespectful towards to creators. Also I just told you what you should do to solve your problems, so I am not that bad am I?
-
No you have to buy that. Show some more respect to the creators.
-
245 isn't a vehicle. Valid id's: vehicleIDS = { 602, 545, 496, 517, 401, 410, 518, 600, 527, 436, 589, 580, 419, 439, 533, 549, 526, 491, 474, 445, 467, 604, 426, 507, 547, 585, 405, 587, 409, 466, 550, 492, 566, 546, 540, 551, 421, 516, 529, 592, 553, 577, 488, 511, 497, 548, 563, 512, 476, 593, 447, 425, 519, 520, 460, 417, 469, 487, 513, 581, 510, 509, 522, 481, 461, 462, 448, 521, 468, 463, 586, 472, 473, 493, 595, 484, 430, 453, 452, 446, 454, 485, 552, 431, 438, 437, 574, 420, 525, 408, 416, 596, 433, 597, 427, 599, 490, 432, 528, 601, 407, 428, 544, 523, 470, 598, 499, 588, 609, 403, 498, 514, 524, 423, 532, 414, 578, 443, 486, 515, 406, 531, 573, 456, 455, 459, 543, 422, 583, 482, 478, 605, 554, 530, 418, 572, 582, 413, 440, 536, 575, 534, 567, 535, 576, 412, 402, 542, 603, 475, 449, 537, 538, 441, 464, 501, 465, 564, 568, 557, 424, 471, 504, 495, 457, 539, 483, 508, 571, 500, 444, 556, 429, 411, 541, 559, 415, 561, 480, 560, 562, 506, 565, 451, 434, 558, 494, 555, 502, 477, 503, 579, 400, 404, 489, 505, 479, 442, 458, 606, 607, 610, 590, 569, 611, 584, 608, 435, 450, 591, 594 }
-
if so, why doesn't your code check the nill's? Seriously that is the first thing you do as scripter, before posting your code. outputDebugString(tostring(vehi).. " " .. tostring(x) .. " " .. tostring(y) .. " " tostring(z) ) local vehicle= createVehicle(vehi, x, y, z ) if vehicle then vehicless[source] = vehicle warpPedIntoVehicle(source, vehicle) outputDebugString("Vehicle successfully created.") else outputDebugString("Warning: no vehicle created, it was a silly mistake.") end
-
Everything can be solved, but I don't think it is it worth. Resync the animation based on time: https://wiki.multitheftauto.com/wiki/Se ... onProgress timeNow = getTickCount() That is math you learn at school, so you can ask that to your teacher. (colshape?)
-
@Et-win Doesn't matter, if the values are something else then numbers/strings, it should not render in the first place. (checked with tonumber) If the argument is a number it will automatic be transferred to a string, while using ".." @LabiVila Server-side arguments are useless to client-side.
-
Gif should be splits up in frames. If you can do that, then you have to change the image every time so you get a smooth animation.
-
Putin learned you that? Brainwashed.... Well I didn't expect less. Can this topic be locked! You moderators should give section bans for requesting.
-
yes, His question was if there was another way then the pairs loop. Afaik there is one other way using meta tables. (which I do not understand and not sure if this is possible)
-
It is a way of saying, learn English for god shake.
-
@MrBrutus He doesn't use the array so # becomes useless. His table is something like this: local myTable = { ["cow_I_love"]=1, ["cow_I_ hate"]=2, ["cow_I_kiss(so sexy)" ]=3 }
-
Yes to help anyone, that is the main purpose. Not use people to do your dirty job. and no that is not my opinion, that is how it works Nerses. If you don't know how it works then we say how it works and if you don't understand how it works we will say it again and again etc. Till pathetic tramps like you will mind the FORUM rules or just leave this section.
