<?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=Spider+Pork</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=Spider+Pork"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Spider_Pork"/>
	<updated>2026-04-24T06:47:43Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGridListRemoveRow&amp;diff=24170</id>
		<title>GuiGridListRemoveRow</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGridListRemoveRow&amp;diff=24170"/>
		<updated>2010-08-04T06:24:43Z</updated>

		<summary type="html">&lt;p&gt;Spider Pork: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This allows you to delete rows that exist in grid lists.&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 guiGridListRemoveRow ( element gridList, int rowIndex )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''gridList:''' The grid list you want to remove a row from&lt;br /&gt;
*'''rowIndex:''' The row ID which you want to remove&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the grid list row was successfully removed, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
In this example, when the script starts, a grid list with 1 column and 2 rows, which have text assigned to them. After 3 seconds, one row is randomly deleted.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function deleteRow ()&lt;br /&gt;
        --Choose randomly which row to delete, output the&lt;br /&gt;
        --chosen row into the chat box, and delete the row&lt;br /&gt;
    	randomDeletion = math.random ( 1, 2 )   &lt;br /&gt;
		if randomDeletion == 1 then&lt;br /&gt;
			outputChatBox ( &amp;quot;Removing row A&amp;quot; )&lt;br /&gt;
			guiGridListRemoveRow ( myGridList, rowA )&lt;br /&gt;
		elseif randomDeletion == 2 then    &lt;br /&gt;
		    outputChatBox ( &amp;quot;Removing row B&amp;quot; )&lt;br /&gt;
			guiGridListRemoveRow ( myGridList, rowB )&lt;br /&gt;
		end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function clientsideResourceStart ()&lt;br /&gt;
	--Create a gridlist&lt;br /&gt;
    	myGridList = guiCreateGridList ( 0.30, 0.10, 0.5, 0.60, true ) &lt;br /&gt;
    	--Create a column for myGridList to add rows into&lt;br /&gt;
        columnA = guiGridListAddColumn ( myGridList, &amp;quot;columnA Title&amp;quot;, 0.25 ) &lt;br /&gt;
	--Create 2 rows for ColumnA and set the text for them&lt;br /&gt;
        rowA = guiGridListAddRow ( myGridList )&lt;br /&gt;
	guiGridListSetItemText ( myGridList, rowA, columnA, &amp;quot;Hello&amp;quot;, false, false )&lt;br /&gt;
	rowB = guiGridListAddRow ( myGridList )&lt;br /&gt;
	guiGridListSetItemText ( myGridList, rowB, columnA, &amp;quot;World!&amp;quot;, false, false )&lt;br /&gt;
   	--Trigger the function to delete a row 3 seconds after the script starts&lt;br /&gt;
        setTimer ( deleteRow, 3000, 1 )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientResourceStart&amp;quot;, getRootElement(), clientsideResourceStart )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI functions}}&lt;/div&gt;</summary>
		<author><name>Spider Pork</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetGameSpeed&amp;diff=23868</id>
		<title>SetGameSpeed</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetGameSpeed&amp;diff=23868"/>
		<updated>2010-07-08T10:02:49Z</updated>

		<summary type="html">&lt;p&gt;Spider Pork: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function sets the game speed to the given value.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setGameSpeed ( int value )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''value''': The float value of the game speed (Range 0 - 10)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the gamespeed was set successfully, ''false'' otherwise.&lt;br /&gt;
The normal game speed is '1'.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&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;
addCommandHandler(&amp;quot;setgamespeed&amp;quot;,&lt;br /&gt;
  function(sourcePlayer, command, value)&lt;br /&gt;
    setGameSpeed(tonumber(value))&lt;br /&gt;
  end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&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;
addCommandHandler(&amp;quot;setgamespeed&amp;quot;,&lt;br /&gt;
  function(command, value)&lt;br /&gt;
    setGameSpeed(tonumber(value))&lt;br /&gt;
  end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{World functions}}&lt;br /&gt;
&lt;br /&gt;
[[ru:setGameSpeed]]&lt;/div&gt;</summary>
		<author><name>Spider Pork</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerStealthKill&amp;diff=23623</id>
		<title>OnPlayerStealthKill</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerStealthKill&amp;diff=23623"/>
		<updated>2010-06-06T06:29:21Z</updated>

		<summary type="html">&lt;p&gt;Spider Pork: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server event}}&lt;br /&gt;
This event is triggered when a player stealth kills another player.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element targetPlayer&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''targetPlayer''': The [[player]] or [[ped]] that is being stealth killed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Add the event's source in the section below --&amp;gt;&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[player]] that initiated the stealth kill.&lt;br /&gt;
&lt;br /&gt;
==Cancel effect==&lt;br /&gt;
If this event is [[Event system#Canceling|canceled]], then the stealth kill is aborted.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
[lua]&lt;br /&gt;
function onStealthKill(targetPlayer)&lt;br /&gt;
     outputChatBox(&amp;quot;Stealth kill!&amp;quot;, source) -- Tell the player he/she has done a stealth kill.&lt;br /&gt;
     outputChatBox(&amp;quot;&amp;quot; .. getPlayerName(targetPlayer) .. &amp;quot; has been stealth-killed by &amp;quot; .. getPlayerName(source) .. &amp;quot;.&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerStealthKill&amp;quot;, getRootElement(), onStealthKill) -- Adds a handler for the stealth kill event.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
[lua]&lt;br /&gt;
function onStealthKill(targetPlayer)&lt;br /&gt;
     cancelEvent(true, &amp;quot;No more stealth kills.&amp;quot;) -- Aborts the stealth-kill.&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerStealthKill&amp;quot;, getRootElement(), onStealthKill) -- Adds a handler for the stealth kill event.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{See also/Server event|Player events}}&lt;/div&gt;</summary>
		<author><name>Spider Pork</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerStealthKill&amp;diff=23598</id>
		<title>OnPlayerStealthKill</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerStealthKill&amp;diff=23598"/>
		<updated>2010-06-03T14:39:26Z</updated>

		<summary type="html">&lt;p&gt;Spider Pork: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server event}}&lt;br /&gt;
This event is triggered when a player stealth kills another player.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element targetPlayer&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''targetPlayer''': The [[player]] or [[ped]] that is being stealth killed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Add the event's source in the section below --&amp;gt;&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[player]] that initiated the stealth kill.&lt;br /&gt;
&lt;br /&gt;
==Cancel effect==&lt;br /&gt;
If this event is [[Event system#Canceling|canceled]], then the stealth kill is aborted.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
[lua]&lt;br /&gt;
function onStealthKill(targetPlayer)&lt;br /&gt;
     outputChatBox(&amp;quot;Stealth kill!&amp;quot;, source) -- Tell the player he/she has done a stealth kill.&lt;br /&gt;
     outputChatBox(&amp;quot;&amp;quot; .. getPlayerName(targetPlayer) .. &amp;quot; has been stealth-killed by &amp;quot; .. getPlayerName(source) .. &amp;quot;.&amp;quot;, source)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerStealthKill&amp;quot;, getRootElement(), onStealthKill) -- Adds a handler for the stealth kill event.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
[lua]&lt;br /&gt;
function onStealthKill(targetPlayer)&lt;br /&gt;
     cancelEvent(true, &amp;quot;No more stealth kills.&amp;quot;) -- Aborts the stealth-kill.&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerStealthKill&amp;quot;, getRootElement(), onStealthKill) -- Adds a handler for the stealth kill event.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{See also/Server event|Player events}}&lt;/div&gt;</summary>
		<author><name>Spider Pork</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerStealthKill&amp;diff=23597</id>
		<title>OnPlayerStealthKill</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerStealthKill&amp;diff=23597"/>
		<updated>2010-06-03T14:39:14Z</updated>

		<summary type="html">&lt;p&gt;Spider Pork: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server event}}&lt;br /&gt;
This event is triggered when a player stealth kills another player.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element targetPlayer&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''targetPlayer''': The [[player]] or [[ped]] that is being stealth killed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Add the event's source in the section below --&amp;gt;&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[player]] that initiated the stealth kill.&lt;br /&gt;
&lt;br /&gt;
==Cancel effect==&lt;br /&gt;
If this event is [[Event system#Canceling|canceled]], then the stealth kill is aborted.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
[lua]&lt;br /&gt;
function onStealthKill(targetPlayer)&lt;br /&gt;
     outputChatBox(&amp;quot;Stealth kill!&amp;quot;, source) -- Tell the player he/she has done a stealth kill.&lt;br /&gt;
     outputChatBox(&amp;quot;&amp;quot; .. getPlayerName(targetPlayer) .. &amp;quot; has been stealth-killed by &amp;quot; .. getPlayerName(source) .. &amp;quot;.&amp;quot;, source)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerStealthKill&amp;quot;, getRootElement(), onStealthKill) -- Adds a handler for the stealth kill event.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
[lua]&lt;br /&gt;
function onStealthKill(targetPlayer)&lt;br /&gt;
     cancelEvent(true, &amp;quot;No more stealth kills.&amp;quot;) -- Aborts the stealth-kill.&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerStealthKill&amp;quot;, getRootElement(), onStealthKill) -- Adds a handler for the stealth kill event.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{See also/Server event|Player events}}&lt;/div&gt;</summary>
		<author><name>Spider Pork</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerStealthKill&amp;diff=23596</id>
		<title>OnPlayerStealthKill</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerStealthKill&amp;diff=23596"/>
		<updated>2010-06-03T14:36:49Z</updated>

		<summary type="html">&lt;p&gt;Spider Pork: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server event}}&lt;br /&gt;
This event is triggered when a player stealth kills another player.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element targetPlayer&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''targetPlayer''': The [[player]] or [[ped]] that is being stealth killed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Add the event's source in the section below --&amp;gt;&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[player]] that initiated the stealth kill.&lt;br /&gt;
&lt;br /&gt;
==Cancel effect==&lt;br /&gt;
If this event is [[Event system#Canceling|canceled]], then the stealth kill is aborted.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
[lua]&lt;br /&gt;
function onStealthKill(targetPlayer)&lt;br /&gt;
     outputChatBox(&amp;quot;Stealth kill!&amp;quot;, source)&lt;br /&gt;
     outputChatBox(&amp;quot;&amp;quot; .. getPlayerName(targetPlayer) .. &amp;quot; has been stealth-killed by &amp;quot; .. getPlayerName(source) .. &amp;quot;.&amp;quot;, source)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerStealthKill&amp;quot;, getRootElement(), onStealthKill)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{See also/Server event|Player events}}&lt;/div&gt;</summary>
		<author><name>Spider Pork</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerStealthKill&amp;diff=23595</id>
		<title>OnPlayerStealthKill</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerStealthKill&amp;diff=23595"/>
		<updated>2010-06-03T14:36:33Z</updated>

		<summary type="html">&lt;p&gt;Spider Pork: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server event}}&lt;br /&gt;
This event is triggered when a player stealth kills another player.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element targetPlayer&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''targetPlayer''': The [[player]] or [[ped]] that is being stealth killed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Add the event's source in the section below --&amp;gt;&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[player]] that initiated the stealth kill.&lt;br /&gt;
&lt;br /&gt;
==Cancel effect==&lt;br /&gt;
If this event is [[Event system#Canceling|canceled]], then the stealth kill is aborted.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
[lua]&lt;br /&gt;
function onStealthKill(targetPlayer)&lt;br /&gt;
     outputChatBox(&amp;quot;Stealth kill!&amp;quot;, source)&lt;br /&gt;
     outputChatBox(&amp;quot;&amp;quot; .. getPlayerName(targetPlayer) .. &amp;quot; has been stealth-killed by &amp;quot; .. getPlayerName(source) .. &amp;quot;.&amp;quot;, source)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerStealthKill&amp;quot;, getRootElement(), onStealthKill)&lt;br /&gt;
[/lua]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{See also/Server event|Player events}}&lt;/div&gt;</summary>
		<author><name>Spider Pork</name></author>
	</entry>
</feed>