Jump to content

Pirulax

Discord Moderators
  • Posts

    403
  • Joined

  • Last visited

Everything posted by Pirulax

  1. I'm just lazy to explain that :~, but trust me, it's just some geometry and trigonometry, simple :~.
  2. You can replace paintjobs with shaders. Go to community.multitheftauto.com to get some idea.
  3. Here's your magic pattern. "(%u%l+)_(%u%l+)$" The '?' was the problem, since, as the manual describes, it'll make that :~(ex.: %u) optional, also I added a '$' too.
  4. You can use fileFlush to save the changes made to the file, but it doesn't close the file, which is, obviously good for ya'
  5. The circle shader is by far the fastest one(nearly 5x times faster than the in-built dxDrawCricle one, since it depends on CPU rather than GPU, which, as you know, isn't used too often in MTA, so, take use of it.)
  6. "Healthy thing" Sure, exports are the fastest thing on earth, even faster than a Lamborghini without an engine. So, back on topic, they're slow af, so avoid using them if possible. Use db* functions instead whenever possible, and in case of dbPoll, please don't use -1, just give a callback function to dbQuery instead.
  7. There's a resource called 'parachute', try that.
  8. Copied from fileOpen's wiki page.
  9. Actually, I was wrong, it doesnt, but hasObjectPermissionTo does. Maybe we could add the ability to pass in elements as well.
  10. Nobody realized that isObjectInACLGroup accepts an element too?
  11. Why you still use that old mysql module when there's now built-in mySQL?
  12. Inject it using executeBrowserJavaScript
  13. use GUIRoot instead(it's a predefined variable. You can see the list of predefined variables here).
  14. I wouldn't set a timer to 100ms(50 is the min btw) on server-side.. Nah, try printing getPlayerIdleTime() with print()
  15. you need to supply 'thePlayer' as an argument to setTimer. setTimer(function(thePlayer ) if getElementData(thePlayer, "asd.asd") then outputChatBox("asd", thePlayer, 255, 255, 255, true) end end, 1000*3, 0, thePlayer)
  16. There is the 'runcode' resource for that. There is a web for it too.
  17. Source of 'onClientRender' is client's root element.
  18. Sure, you can create objects, and set their position according to getVehicleComponentPosition.
  19. setVehicleComponentRotation
  20. dxDrawImage() dxSetRenderTarget() dxCreateRenderTarget() -- for loop -- some variables math.random() math.randomseed(getTickCount()+math.random(getTickCount()) -- onClientClick -- onClientRender -- maybe onClientKey
  21. As I said you can simply inject everything with some JS knowledge
  22. Please remove that background color, or whatever is that, because it's ugly like this. So. He haven't said that it's in a loop, he just gave us a code with an 'if' statement.
×
×
  • Create New...