Jump to content

Pirulax

Discord Moderators
  • Posts

    403
  • Joined

  • Last visited

Everything posted by Pirulax

  1. That's physically impossible. Why would it run more than once?
  2. 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)
  3. 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.
  4. Pirulax

    Mirror shader

    Maybe what you could use is the shader that @Ren_712 made, it can be found here
  5. It's not synced immediately, but after the time set in mtaserver.conf passes.
  6. Pirulax

    Mirror shader

    I don't think that someone'll give you a shader for that.
  7. Those billiard balls have a good physics applied to them If I'm correct, so you could use them
  8. If you literally want to save every element data the client had(has) you can use getAllElementData and just store it.
  9. What I'd do is: onClientPreRender getElementDimension triggerServerEvent kickPlayer
  10. 'text' should do the trick.
  11. You could do a setVehicleDamageProof when onVehicleExit is triggered and no1 is in the car.
  12. 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.
  13. 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.
  14. Thought the same actually when I wanted to report, was about to comment.
  15. 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.
  16. it modifies the col and reloads it for that model with raw data.
  17. Link the video @JeViCo Btw, maybe you're talking about /showcol? (visualize colshapes)
  18. 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.
  19. Report the bug with a test resource on the GH page of MTA:SA
  20. Create the command server-side, and just do a triggerClientEvent.
  21. If @CrosRoad95's PR get's merged then u'll be able to do so.
×
×
  • Create New...