<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.gtaconnected.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Lua%2FHowTo%2FServerEvents</id>
	<title>Lua/HowTo/ServerEvents - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.gtaconnected.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Lua%2FHowTo%2FServerEvents"/>
	<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=Lua/HowTo/ServerEvents&amp;action=history"/>
	<updated>2026-05-10T16:30:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.15</generator>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=Lua/HowTo/ServerEvents&amp;diff=241&amp;oldid=prev</id>
		<title>Vortrex: Created page with &quot;== Event Handlers == To set a handler for an event, you&#039;ll need to use the AddHandler function. The function you use to handle events must...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=Lua/HowTo/ServerEvents&amp;diff=241&amp;oldid=prev"/>
		<updated>2017-08-14T06:47:49Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Event Handlers == To set a handler for an event, you&amp;#039;ll need to use the &lt;a href=&quot;/wiki/index.php?title=Lua/Server/Functions/AddHandler&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Lua/Server/Functions/AddHandler (page does not exist)&quot;&gt;AddHandler&lt;/a&gt; function. The function you use to handle events must...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Event Handlers ==&lt;br /&gt;
To set a handler for an event, you&amp;#039;ll need to use the [[Lua/Server/Functions/AddHandler|AddHandler]] function. The function you use to handle events must follow the syntax shown in each event page, under the &amp;quot;Handler Syntax&amp;quot; section.&lt;br /&gt;
&lt;br /&gt;
== Event Object ==&lt;br /&gt;
Each event handler function has the first parameter as an event object. The event object has several properties, and allows you to specify how to handle the event.&lt;br /&gt;
There is more information on the [[Lua/Server/Types/Event|Event Object]] page.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
There will be a few examples listed here soon. Most of the server event pages have their own example, if you need a reference.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
There are no extra notes for how to use events at this time.&lt;/div&gt;</summary>
		<author><name>Vortrex</name></author>
	</entry>
</feed>