<?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=Kleiner+Opa</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=Kleiner+Opa"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Kleiner_Opa"/>
	<updated>2026-05-19T23:40:23Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Damage_Types&amp;diff=34144</id>
		<title>Damage Types</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Damage_Types&amp;diff=34144"/>
		<updated>2012-11-20T07:14:51Z</updated>

		<summary type="html">&lt;p&gt;Kleiner Opa: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following death reasons are used by event like onPlayerWasted for the killerWeapon argument to describe the reason, why a ped died.&amp;lt;br&amp;gt;&lt;br /&gt;
When a player was shot by a weapon, the respective weapon ID is the death reason ID. The weapon IDs can be found [[Weapons|here]].&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
:{|class=&amp;quot;wikitable sortable&amp;quot; style=&amp;quot;width: auto; table-layout: fixed;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!ID&lt;br /&gt;
! class=&amp;quot;unsortable&amp;quot; |Death reason&lt;br /&gt;
! class=&amp;quot;unsortable&amp;quot; |Additional info&lt;br /&gt;
|-&lt;br /&gt;
!19&lt;br /&gt;
|Rocket&lt;br /&gt;
|Actual death reason / weapon ID when dying from a rocket launcher&lt;br /&gt;
|-&lt;br /&gt;
!37&lt;br /&gt;
|Burnt&lt;br /&gt;
|This is used by a death by fire, even when the fire is created by a rocket explosion or a molotov&lt;br /&gt;
|-&lt;br /&gt;
!49&lt;br /&gt;
|Rammed&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
!50&lt;br /&gt;
|Ranover&lt;br /&gt;
|This is also called when dying because of helicopter blades&lt;br /&gt;
|-&lt;br /&gt;
!51&lt;br /&gt;
|Explosion&lt;br /&gt;
|This may sometimes also be used at an indirect death through an exploding rocket&lt;br /&gt;
|-&lt;br /&gt;
!52&lt;br /&gt;
|Driveby&lt;br /&gt;
|This is NOT used for a driveby kill with e.g. the 'realdriveby' resource&lt;br /&gt;
|-&lt;br /&gt;
!53&lt;br /&gt;
|Drowned&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
!54&lt;br /&gt;
|Fall&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
!55&lt;br /&gt;
|Unknown&lt;br /&gt;
|No known information about this death reason&lt;br /&gt;
|-&lt;br /&gt;
!56&lt;br /&gt;
|Melee&lt;br /&gt;
|Seems to be never called (?); for an actual melee death, the fist weapon ID (0) is used (see [[Weapons|here]])&lt;br /&gt;
|-&lt;br /&gt;
!57&lt;br /&gt;
|Weapon&lt;br /&gt;
|Seems to be never called (?)&lt;br /&gt;
|-&lt;br /&gt;
!59&lt;br /&gt;
|Tank Grenade&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
!63&lt;br /&gt;
|Blown&lt;br /&gt;
|Actual death reason when dying in a vehicle explosion&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Death Reasons in lua table&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local deathReasons = {&lt;br /&gt;
	19 = &amp;quot;Rocket&amp;quot;,&lt;br /&gt;
	37 = &amp;quot;Burnt&amp;quot;,&lt;br /&gt;
	49 = &amp;quot;Rammed&amp;quot;,&lt;br /&gt;
	50 = &amp;quot;Ranover/Helicopter Blades&amp;quot;,&lt;br /&gt;
	51 = &amp;quot;Explosion&amp;quot;,&lt;br /&gt;
	52 = &amp;quot;Driveby&amp;quot;,&lt;br /&gt;
	53 = &amp;quot;Drowned&amp;quot;,&lt;br /&gt;
	54 = &amp;quot;Fall&amp;quot;,&lt;br /&gt;
	55 = &amp;quot;Unkown&amp;quot;,&lt;br /&gt;
	56 = &amp;quot;Meele&amp;quot;,&lt;br /&gt;
	57 = &amp;quot;Weapon&amp;quot;,&lt;br /&gt;
	59 = &amp;quot;Tank Grenade&amp;quot;,&lt;br /&gt;
	63 = &amp;quot;Blown&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[ru:Death Reasons]]&lt;br /&gt;
[[de:Todesgründe]]&lt;br /&gt;
&lt;br /&gt;
[[Category:ID Lists]]&lt;/div&gt;</summary>
		<author><name>Kleiner Opa</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientGUIDoubleClick&amp;diff=31330</id>
		<title>OnClientGUIDoubleClick</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientGUIDoubleClick&amp;diff=31330"/>
		<updated>2012-06-04T10:59:44Z</updated>

		<summary type="html">&lt;p&gt;Kleiner Opa: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is fired when the user double clicks a GUI element. Doesn't work with buttons.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string button, string state, int absoluteX, int absoluteY&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''button:''' the name of the mouse button that the GUI element was double clicked with.&lt;br /&gt;
*'''state:''' the state of the mouse button. &amp;quot;down&amp;quot; or &amp;quot;up&amp;quot;.&lt;br /&gt;
*'''absoluteX:''' the X position of the mouse cursor, in pixels, measured from the left side of the screen.&lt;br /&gt;
*'''absoluteY:''' the Y position of the mouse cursor, in pixels, measured from the top of the screen.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The source of this event is the GUI element that was double clicked.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example displays in chatbox name of double-clicked player in a gridlist.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler( &amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement( ),&lt;br /&gt;
    function ( )&lt;br /&gt;
        gridList = guiCreateGridList( 10, 200, 100, 50, false ) -- create a gridlist&lt;br /&gt;
        local col = guiGridListAddColumn( gridList, &amp;quot;Players&amp;quot;, .9 ) -- add &amp;quot;Players&amp;quot; column&lt;br /&gt;
&lt;br /&gt;
        local players = getElementsByType( &amp;quot;player&amp;quot; )&lt;br /&gt;
        for i, plr in pairs( players ) do -- loop through the table of players&lt;br /&gt;
            local row = guiGridListAddRow( gridList ); -- add row for player&lt;br /&gt;
            guiGridListSetItemText( gridList, row, col, getPlayerName( plr ), false, false ) -- change the text of the added row&lt;br /&gt;
        end&lt;br /&gt;
&lt;br /&gt;
        addEventHandler( &amp;quot;onClientGUIDoubleClick&amp;quot;, gridList, doubleClickedName, false )&lt;br /&gt;
    end&lt;br /&gt;
);&lt;br /&gt;
&lt;br /&gt;
function doubleClickedName( )&lt;br /&gt;
    local selectedRow, selectedCol = guiGridListGetSelectedItem( gridList ); -- get double clicked item in the gridlist&lt;br /&gt;
    local playerName = guiGridListGetItemText( gridList, selectedRow, selectedCol ) -- get its text&lt;br /&gt;
    outputChatBox( &amp;quot;You double-clicked: &amp;quot; .. playerName ) -- display the text taken from gridlist&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===GUI events===&lt;br /&gt;
{{GUI_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>Kleiner Opa</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientGUIDoubleClick&amp;diff=31329</id>
		<title>OnClientGUIDoubleClick</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientGUIDoubleClick&amp;diff=31329"/>
		<updated>2012-06-04T10:59:32Z</updated>

		<summary type="html">&lt;p&gt;Kleiner Opa: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is fired when the user double clicks a GUI element. Doesn't work with buttons.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string button, string state, int absoluteX, int absoluteY&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''button:''' the name of the mouse button that the GUI element was double clicked with.&lt;br /&gt;
*'''state:''' the state of the mouse button. &amp;quot;down&amp;quot; or &amp;quot;up&amp;quot;.&lt;br /&gt;
*'''absoluteX:''' the X position of the mouse cursor, in pixels, measured from the left side of the screen.&lt;br /&gt;
*'''absoluteY:''' the Y position of the mouse cursor, in pixels, measured from the top of the screen.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The source of this event is the GUI element that was double clicked.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example displays in chatbox name of double-clicked player in a gridlist.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler( &amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement( ),&lt;br /&gt;
    function ( )&lt;br /&gt;
        gridList = guiCreateGridList( 10, 200, 100, 50, false ) -- create a gridlist&lt;br /&gt;
        local col = guiGridListAddColumn( gridList, &amp;quot;Players&amp;quot;, .9 ) -- add &amp;quot;Players&amp;quot; column&lt;br /&gt;
&lt;br /&gt;
        local players = getElementsByType( &amp;quot;player&amp;quot; );&lt;br /&gt;
        for i, plr in pairs( players ) do -- loop through the table of players&lt;br /&gt;
            local row = guiGridListAddRow( gridList ); -- add row for player&lt;br /&gt;
            guiGridListSetItemText( gridList, row, col, getPlayerName( plr ), false, false ) -- change the text of the added row&lt;br /&gt;
        end&lt;br /&gt;
&lt;br /&gt;
        addEventHandler( &amp;quot;onClientGUIDoubleClick&amp;quot;, gridList, doubleClickedName, false )&lt;br /&gt;
    end&lt;br /&gt;
);&lt;br /&gt;
&lt;br /&gt;
function doubleClickedName( )&lt;br /&gt;
    local selectedRow, selectedCol = guiGridListGetSelectedItem( gridList ); -- get double clicked item in the gridlist&lt;br /&gt;
    local playerName = guiGridListGetItemText( gridList, selectedRow, selectedCol ) -- get its text&lt;br /&gt;
    outputChatBox( &amp;quot;You double-clicked: &amp;quot; .. playerName ) -- display the text taken from gridlist&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===GUI events===&lt;br /&gt;
{{GUI_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>Kleiner Opa</name></author>
	</entry>
</feed>