-
Posts
6,064 -
Joined
-
Last visited
-
Days Won
209
Everything posted by IIYAMA
-
You don't have two tables. Remove that [1] Your index isn't 1, it is only the client.
-
Well check the variables(if the table has it's data etc.) and at which part it stops working.
-
Empty the grid list first. https://wiki.multitheftauto.com/wiki/GuiGridListClear
-
look at the syntax. Function is second argument. If you want to know when the process is completed, you can call your finished function between line: 30 and 31. Example/test run: local theTable = {3,5,36,547,36,3,8,9,3,6,7,8,5,4,7,8,4,8,5,2,2,1} function executeProcess (index, par) outputChatBox(tostring(index) .. " " .. tostring(par)) -- do your stuff here -- end startSlowLoop ( theTable, executeProcess, 5) Afaik you need the code, then you test it. Go ahead.
-
@Drakath No there isn't, you have to sync the data like your player is sync his position to the server. So as you said a timer and triggerServerEvent. Depending how critical the data is, will require another update rate. How critical is the data and must it be secure? Because there is also clientside saving.(which can be edited by smart guys and will not be included at other pc's you play it on)
-
I don't think that is possible and even if it is possible, there isn't guaranteed it will reach the server. Connection will be broken after unloading of the resources.
-
https://wiki.multitheftauto.com/wiki/Is ... rBoxActive
-
My version, not tested. local slowLoopTable = {} local maxItemsPerLoop = 30 local slowLoopFunction = function (theTable) local tableData = slowLoopTable[theTable] if tableData then local startValue = tableData["startValue"] local endValue = tableData["endValue"] local processFunction = tableData["processFunction"] for i=startValue, endValue do tableData["processFunction"](i,theTable[i]) end local maxItemsPerLoop = (theTable["maxItemsPerLoop"] or maxItemsPerLoop) local newStartValue = endValue+1 if newStartValue <= #theTable then tableData["startValue"] = newStartValue local newEndValue = newStartValue+maxItemsPerLoop if newEndValue > #theTable then tableData["endValue"] = #theTable else tableData["endValue"] = newEndValue end --tableData["timer"] = setTimer(slowLoopFunction,400,1,theTable) resetTimer (tableData["timer"]) else slowLoopTable[theTable] = nil end end end function startSlowLoop (theTable,processFunction,itemsPerLoop) local slowLoopTimer = setTimer(slowLoopFunction,400,1,theTable) if slowLoopTimer then local maxItemsPerLoop = tonumber(itemsPerLoop) or maxItemsPerLoop -- protect the variable against overwrite if maxItemsPerLoop > #theTable then maxItemsPerLoop = #theTable end slowLoopTable[theTable]= { ["timer"]= slowLoopTimer, -- can be useful for a quick abort and reset. ["startValue"]= 1, ["endValue"]= maxItemsPerLoop, ["maxItemsPerLoop"]= maxItemsPerLoop, ["processFunction"]= processFunction } end end --[[ supports multiply tables ----------------------------- ]] syntrax startSlowLoop ( theTable, processFunction [, itemsPerLoop = 30] ) Send to process function. ( index, par )
-
Study triggerClientEvent, which is about communication between serverside to clientside. https://wiki.multitheftauto.com/wiki/TriggerClientEvent Watch the examples with care.
-
Car speed can be locked by adjust: https://wiki.multitheftauto.com/wiki/SetControlState
-
XML is slow, you should load it slowly. without what to be exact?
-
I just gave you that and you are too lazy to check it out. this is the scripting section, not the request section.
-
You are creating a line, one of your rotation (x or y)as is depending on your start and end point of the line itself. Also it would be named as: "dxDrawImage3D" Start---------------------end Start | | | | | end
-
server https://wiki.multitheftauto.com/wiki/Se ... amageProof client > nitro https://wiki.multitheftauto.com/wiki/Cl ... _functions
-
np. As long as you understand, that I am here to spend my time to help you with scripting.
-
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.