Pirulax
Discord Moderators-
Posts
403 -
Joined
-
Last visited
Everything posted by Pirulax
-
DFF-encryption causes client's breakdowns. Efficient suggestions?
Pirulax replied to maximumdrive's topic in Scripting
As I thought, it was because of those variables you used. And anyways, the raw data you pass into engineLoadDFF is deleted from the memory(loading a DFF from a file is the same, it needs to read raw data anyways.) There was a memory leak with those functions, but it got fixed(1 or 2 months ago) -
Use 'dgs', it seems like this lib is a little bit outdated+has some bugs. Btw it seems like it has some kind of problem with getting the real text width. Look into the code and fix it.
-
Maybe what you could use is the shader that @Ren_712 made, it can be found here
-
It's not synced immediately, but after the time set in mtaserver.conf passes.
-
I don't think that someone'll give you a shader for that.
-
Those billiard balls have a good physics applied to them If I'm correct, so you could use them
-
If you literally want to save every element data the client had(has) you can use getAllElementData and just store it.
-
Thanks for those reps m8
-
What I'd do is: onClientPreRender getElementDimension triggerServerEvent kickPlayer
-
'text' should do the trick.
-
Please talk in English.
-
the file functions+JSON
-
You could do a setVehicleDamageProof when onVehicleExit is triggered and no1 is in the car.
-
If the resource doesn't get restarted then simply store the result from getAllElementData And when the player rejoins just reset his/her element data's from the table you saved.
-
lmao, there are a lot of thing that even I can't understand -- Free the arrays -- for index, houses in pairs(house) do houses = nil end for index, houseDatas in pairs(houseData) do houseDatas = nil end for index, houseInts in pairs(houseInt) do houseInts = nil end for index, houseIntDatas in pairs(houseIntData) do houseIntDatas = nil end houseid = 0 created = false Why? When a resource is stopped it's LuaVM is destroyed too, thus, memory is freed up anyways. Second, I recommend you to store similar values in a table, like local MYSQL_DATA = { --// use UPPER_CASE or UPPERCASE for constants { --// Data for connection 1 }, { --// Data for connection 2 } } i'm sure there are more things that I could criticize, but I'm lazy to do so.
-
Thought the same actually when I wanted to report, was about to comment.
-
that's a hex converted to a base10 number. You can convert that back to HEX and HEX to RGB I think. Use this to convert from base 10 to HEX and use this to convert from HEX to RGBA Edit: Seems like it returns 255, 255, 100 (R, G, B) instead of 255, 100, 255 (R, G, B) This works too. Nice solution.
-
it modifies the col and reloads it for that model with raw data.
-
Link the video @JeViCo Btw, maybe you're talking about /showcol? (visualize colshapes)
-
If I'm right it's synced, just like he's position, but If you have a server where we can test it I'd happily help you.
-
Report the bug with a test resource on the GH page of MTA:SA
-
Create the command server-side, and just do a triggerClientEvent.
-
If @CrosRoad95's PR get's merged then u'll be able to do so.
-
Not even then lmao