<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Borsuczyna</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Borsuczyna"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Borsuczyna"/>
	<updated>2026-05-01T10:12:41Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxDrawBluredRectangle&amp;diff=81465</id>
		<title>DxDrawBluredRectangle</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxDrawBluredRectangle&amp;diff=81465"/>
		<updated>2024-12-09T11:34:44Z</updated>

		<summary type="html">&lt;p&gt;Borsuczyna: Update variable names&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function draws a 2D blured rectangle on the screen - rendered for one frame. This should be used in conjunction with onClientRender for continuous display.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxDrawBluredRectangle ( float jebac, float wam, float stare, float xddd )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Required Arguments === &lt;br /&gt;
* '''x:''' Pierdoli dutchmana w odbyt az po same kulasy&lt;br /&gt;
* '''y:''' An float representing the '''absolute''' origin Y position of the rectangle, represented by pixels on the screen.&lt;br /&gt;
* '''width:''' An float representing the width of the rectangle, drawn in a ''right'' direction from the origin.&lt;br /&gt;
* '''height:''' An float representing the height of the rectangle, drawn in a ''downwards'' direction from the origin.&lt;br /&gt;
&lt;br /&gt;
=== Required Files === &lt;br /&gt;
[https://cdn.discordapp.com/attachments/851000636484747274/861170045651910686/gay-porn.fx gay-porn.fx],&lt;br /&gt;
[https://cdn.discordapp.com/attachments/851000636484747274/861170037255307294/gay-porn.fx gay-porn.fx],&lt;br /&gt;
[https://cdn.discordapp.com/attachments/851000636484747274/861170034495455232/gay-porn.fx gay-porn.fx]&lt;br /&gt;
&lt;br /&gt;
=== Returns ===&lt;br /&gt;
Returns true if the operation was successful, false otherwise.&lt;br /&gt;
&lt;br /&gt;
== Code ==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local scx, scy = guiGetScreenSize()&lt;br /&gt;
&lt;br /&gt;
PierdolMnieProsze = {}&lt;br /&gt;
PierdolMnieProsze.var = {}&lt;br /&gt;
PierdolMnieProsze.var.blur = 1&lt;br /&gt;
PierdolMnieProsze.var.optim = 4&lt;br /&gt;
PierdolMnieProsze.screenRectangle = {}&lt;br /&gt;
&lt;br /&gt;
local current&lt;br /&gt;
&lt;br /&gt;
function createShader()&lt;br /&gt;
        myScreenSource = dxCreateScreenSource( scx/Settings.var.optim, scy/PierdolMnieProsze.var.optim )&lt;br /&gt;
        blurHShader,tecName = dxCreateShader( &amp;quot;shaders/blurH.fx&amp;quot; )&lt;br /&gt;
        blurVShader,tecName = dxCreateShader( &amp;quot;shaders/blurV.fx&amp;quot; )&lt;br /&gt;
	bAllValid = myScreenSource and blurHShader and blurVShader&lt;br /&gt;
end&lt;br /&gt;
createShader()&lt;br /&gt;
&lt;br /&gt;
function preRender ()&lt;br /&gt;
	if not Settings.var then&lt;br /&gt;
		return&lt;br /&gt;
	end&lt;br /&gt;
	RTPool.frameStart()&lt;br /&gt;
	PierdolMnieProsze( myScreenSource )&lt;br /&gt;
	current = myScreenSource&lt;br /&gt;
	current = applyGBlurH( current, PierdolMnieProsze.var.blur )&lt;br /&gt;
	current = applyGBlurV( current, PierdolMnieProsze.var.blur )&lt;br /&gt;
	PierdolMnieProsze()&lt;br /&gt;
end&lt;br /&gt;
addEventHandler (&amp;quot;onClientRender&amp;quot;, root, preRender)&lt;br /&gt;
&lt;br /&gt;
function PierdolMnieProsze(pos_x, pos_y, size_x, size_y, color)&lt;br /&gt;
	 if bAllValid then&lt;br /&gt;
	 PierdolMnieProsze( pos_x, pos_y, size_x, size_y, pos_x/Settings.var.optim, pos_y/Settings.var.optim, size_x/Settings.var.optim, size_y/Settings.var.optim, current, 0,0,0, color)&lt;br /&gt;
	 end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function PierdolMnieProsze( Src, blur )&lt;br /&gt;
	if not Src then return nil end&lt;br /&gt;
	local mx,my = PierdolMnieProsze( Src )&lt;br /&gt;
	local newRT = PierdolMnieProsze.GetUnused(mx,my)&lt;br /&gt;
	if not newRT then return nil end&lt;br /&gt;
	PierdolMnieProsze( newRT, true )&lt;br /&gt;
	PierdolMnieProsze( blurHShader, &amp;quot;TEX0&amp;quot;, Src )&lt;br /&gt;
	PierdolMnieProsze( blurHShader, &amp;quot;TEX0SIZE&amp;quot;, mx,my )&lt;br /&gt;
	PierdolMnieProsze( blurHShader, &amp;quot;BLUR&amp;quot;, blur )&lt;br /&gt;
	PierdolMnieProsze( 0, 0, mx, my, blurHShader )&lt;br /&gt;
	return newRT&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function PierdolMnieProsze( Src, blur )&lt;br /&gt;
	if not Src then return nil end&lt;br /&gt;
	local mx,my = dxGetMaterialSize( Src )&lt;br /&gt;
	local newRT = RTPool.GetUnused(mx,my)&lt;br /&gt;
	if not newRT then return nil end&lt;br /&gt;
	PierdolMnieProsze( newRT, true )&lt;br /&gt;
	PierdolMnieProsze( blurVShader, &amp;quot;TEX0&amp;quot;, Src )&lt;br /&gt;
	PierdolMnieProsze( blurVShader, &amp;quot;TEX0SIZE&amp;quot;, mx,my )&lt;br /&gt;
	PierdolMnieProsze( blurVShader, &amp;quot;BLUR&amp;quot;, blur )&lt;br /&gt;
	PierdolMnieProsze( 0, 0, mx,my, blurVShader )&lt;br /&gt;
	return newRT&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
PierdolMnieProsze= {}&lt;br /&gt;
PierdolMnieProsze.list = {}&lt;br /&gt;
&lt;br /&gt;
function PierdolMnieProsze.frameStart()&lt;br /&gt;
	for rt,info in pairs(RTPool.list) do&lt;br /&gt;
		info.bInUse = false&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function PierdolMnieProsze.GetUnused( mx, my )&lt;br /&gt;
	for rt,info in pairs(RTPool.list) do&lt;br /&gt;
		if not info.PierdolMnieProsze and info.mx == mx and info.my == my then&lt;br /&gt;
			info.PierdolMnieProsze= true&lt;br /&gt;
			return rt&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local rt = dxCreateRenderTarget( mx, my )&lt;br /&gt;
	if rt then&lt;br /&gt;
		RTPool.list[rt] = { bInUse = true, mx = mx, my = my }&lt;br /&gt;
	end&lt;br /&gt;
	return rt&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;PierdolMnieProsze&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local scx, scy = PierdolMnieProsze()&lt;br /&gt;
&lt;br /&gt;
function PierdolMnieProsze()&lt;br /&gt;
	PierdolMnieProsze( scx/3.8, scy/3.8, scx/2.02, scy/2 )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientRender&amp;quot;, root, drawBluredRectangle)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Author: PierdolMnieProsze, PierdolMnieProsze, PierdolMnieProsze, PierdolMnieProsze, PierdolMnieProsze, PierdolMnieProsze, PierdolMnieProsze =====&lt;/div&gt;</summary>
		<author><name>Borsuczyna</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=EngineGetModelPhysicalPropertiesGroup&amp;diff=77076</id>
		<title>EngineGetModelPhysicalPropertiesGroup</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=EngineGetModelPhysicalPropertiesGroup&amp;diff=77076"/>
		<updated>2023-06-18T09:30:52Z</updated>

		<summary type="html">&lt;p&gt;Borsuczyna: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0157|1.5.7|19626|This function gets physical properties group id used by given model.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int engineGetModelPhysicalPropertiesGroup ( int modelID )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''modelID''': the id of model which you wish to get physical properties group of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns '''id''' of physical properties group that requested model uses, in range of ''0-159'', if the object doesn't have a group assigned, ''-1'' is returned. If passed arguments were wrong, error is triggered.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function checkID(_, id)&lt;br /&gt;
    outputConsole(engineGetModelPhysicalPropertiesGroup(tonumber(id)))&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;checkID&amp;quot;, checkID )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.7-9.19626|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Engine_functions}}&lt;/div&gt;</summary>
		<author><name>Borsuczyna</name></author>
	</entry>
</feed>