Pirulax
Discord Moderators-
Posts
403 -
Joined
-
Last visited
Everything posted by Pirulax
-
I'm just lazy to explain that :~, but trust me, it's just some geometry and trigonometry, simple :~.
-
You can replace paintjobs with shaders. Go to community.multitheftauto.com to get some idea.
- 2 replies
-
- paintjob
- replacement
-
(and 3 more)
Tagged with:
-
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.
-
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'
-
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.)
-
"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.
-
There's a resource called 'parachute', try that.
-
Copied from fileOpen's wiki page.
-
Actually, I was wrong, it doesnt, but hasObjectPermissionTo does. Maybe we could add the ability to pass in elements as well.
-
Nobody realized that isObjectInACLGroup accepts an element too?
-
Why you still use that old mysql module when there's now built-in mySQL?
-
Inject it using executeBrowserJavaScript
-
use GUIRoot instead(it's a predefined variable. You can see the list of predefined variables here).
-
I wouldn't set a timer to 100ms(50 is the min btw) on server-side.. Nah, try printing getPlayerIdleTime() with print()
-
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)
-
There is the 'runcode' resource for that. There is a web for it too.
-
Source of 'onClientRender' is client's root element.
-
Sure, you can create objects, and set their position according to getVehicleComponentPosition.
-
setVehicleComponentRotation
-
Actually.
-
dxDrawImage() dxSetRenderTarget() dxCreateRenderTarget() -- for loop -- some variables math.random() math.randomseed(getTickCount()+math.random(getTickCount()) -- onClientClick -- onClientRender -- maybe onClientKey
-
As I said you can simply inject everything with some JS knowledge