<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Wiki G1R-MP G1 Remake Multiplayer  - Recent changes [en]</title>
		<link>https://g1r-mp.com/wiki/index.php?title=Special:RecentChanges</link>
		<description>Track the most recent changes to the wiki in this feed.</description>
		<language>en</language>
		<generator>MediaWiki 1.46.0</generator>
		<lastBuildDate>Wed, 05 Aug 2026 05:43:06 GMT</lastBuildDate>
		<item>
			<title>SetPlayerName</title>
			<link>https://g1r-mp.com/wiki/index.php?title=SetPlayerName&amp;diff=119&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=SetPlayerName&amp;diff=119&amp;oldid=0</guid>
			<description>&lt;p&gt;Document authoritative player name functions&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: setPlayerName. --&amp;gt;&lt;br /&gt;
= setPlayerName =&lt;br /&gt;
Changes a connected player&amp;#039;s authoritative multiplayer name.&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 setPlayerName(int playerId, string playerName)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;playerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || The connected player whose name will be changed.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;playerName&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || A unique name containing 3-16 ASCII letters, digits, spaces, underscores or hyphens.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the server accepts the new name; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Create a private /name command:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;name&amp;quot;, function(playerId, commandName, ...)&lt;br /&gt;
    local requestedName = table.concat({...}, &amp;quot; &amp;quot;)&lt;br /&gt;
&lt;br /&gt;
    if setPlayerName(playerId, requestedName) then&lt;br /&gt;
        outputChatBox(&amp;quot;Your name is now &amp;quot; .. getPlayerName(playerId) .. &amp;quot;.&amp;quot;, playerId)&lt;br /&gt;
    else&lt;br /&gt;
        outputChatBox(&amp;quot;That player name is invalid or already in use.&amp;quot;, playerId)&lt;br /&gt;
    end&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
* Names are trimmed and must be 3-16 characters long.&lt;br /&gt;
* Allowed characters are A-Z, a-z, 0-9, spaces, underscores and hyphens. Consecutive spaces are rejected.&lt;br /&gt;
* Names must be unique among connected players; uniqueness is checked case-insensitively.&lt;br /&gt;
* Successful changes are replicated to clients and raise &amp;lt;code&amp;gt;onPlayerNameChange&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Player Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 16:29:59 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:SetPlayerName</comments>
		</item>
		<item>
			<title>GetPlayerName</title>
			<link>https://g1r-mp.com/wiki/index.php?title=GetPlayerName&amp;diff=118&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=GetPlayerName&amp;diff=118&amp;oldid=0</guid>
			<description>&lt;p&gt;Document authoritative player name functions&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: getPlayerName. --&amp;gt;&lt;br /&gt;
= getPlayerName =&lt;br /&gt;
Returns the authoritative multiplayer name of a connected player.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getPlayerName(int playerId)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;playerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || The connected player identifier.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns the player&amp;#039;s current name as a string, or &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; when the player is not connected.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Greet a player when they join:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerJoin&amp;quot;, function(playerId)&lt;br /&gt;
    local name = getPlayerName(playerId)&lt;br /&gt;
    if name then&lt;br /&gt;
        outputChatBox(&amp;quot;Welcome, &amp;quot; .. name .. &amp;quot;!&amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
* Player names are authoritative on the server and are replicated to connected clients.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Player Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 16:29:48 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:GetPlayerName</comments>
		</item>
		<item>
			<title>TriggerServerEvent</title>
			<link>https://g1r-mp.com/wiki/index.php?title=TriggerServerEvent&amp;diff=117&amp;oldid=113</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=TriggerServerEvent&amp;diff=117&amp;oldid=113</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:53, 4 August 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l31&quot;&gt;Line 31:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 31:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Available only in client-side resource scripts.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Available only in client-side resource scripts.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The server must declare the event with &amp;lt;code&amp;gt;addEvent(eventName, true)&amp;lt;/code&amp;gt; and validate the true sender before changing authoritative state.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The server must declare the event with &amp;lt;code&amp;gt;addEvent(eventName, true)&amp;lt;/code&amp;gt; and validate the true sender before changing authoritative state.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* The authenticated sender&#039;s player ID is passed to the server handler before the values supplied by the client.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Client Functions]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Client Functions]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Network Functions]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Network Functions]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Event Functions]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Event Functions]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:53:47 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:TriggerServerEvent</comments>
		</item>
		<item>
			<title>GetPlayerProgression</title>
			<link>https://g1r-mp.com/wiki/index.php?title=GetPlayerProgression&amp;diff=116&amp;oldid=55</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=GetPlayerProgression&amp;diff=116&amp;oldid=55</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:53, 4 August 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l23&quot;&gt;Line 23:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 23:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;local progression = getPlayerProgression(playerId)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;local progression = getPlayerProgression(playerId)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;if progression then&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;if progression then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     print(&quot;Level:&quot;, progression.level)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     print(&quot;Level:&quot;, progression&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;.stats&lt;/ins&gt;.level)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     print(&amp;quot;Guild:&amp;quot;, progression.guild)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     print(&amp;quot;Guild:&amp;quot;, progression.guild)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:53:34 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:GetPlayerProgression</comments>
		</item>
		<item>
			<title>GetPlayerMagicState</title>
			<link>https://g1r-mp.com/wiki/index.php?title=GetPlayerMagicState&amp;diff=115&amp;oldid=53</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=GetPlayerMagicState&amp;diff=115&amp;oldid=53</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:53, 4 August 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l22&quot;&gt;Line 22:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 22:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;local magic = getPlayerMagicState(playerId)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;local magic = getPlayerMagicState(playerId)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;if magic and magic.activeSpell then&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;if magic and magic.activeSpell &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;~= &quot;none&quot; &lt;/ins&gt;then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     print(&amp;quot;Cast phase:&amp;quot;, magic.phase)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     print(&amp;quot;Cast phase:&amp;quot;, magic.phase)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     print(&amp;quot;Spell:&amp;quot;, magic.activeSpell)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     print(&amp;quot;Spell:&amp;quot;, magic.activeSpell)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:53:32 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:GetPlayerMagicState</comments>
		</item>
		<item>
			<title>DbPoll</title>
			<link>https://g1r-mp.com/wiki/index.php?title=DbPoll&amp;diff=114&amp;oldid=44</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=DbPoll&amp;diff=114&amp;oldid=44</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:53, 4 August 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l20&quot;&gt;Line 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Returns ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Returns ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Returns &amp;lt;code&amp;gt;nil&amp;lt;/code&amp;gt; while pending; &amp;lt;code&amp;gt;false, errorCode, errorMessage&amp;lt;/code&amp;gt; on failure; or &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a &lt;/del&gt;rows &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;table followed by count&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;affected-row metadata &lt;/del&gt;on success.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Returns &amp;lt;code&amp;gt;nil&amp;lt;/code&amp;gt; while pending; &amp;lt;code&amp;gt;false, errorCode, errorMessage&amp;lt;/code&amp;gt; on failure; or &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;code&amp;gt;&lt;/ins&gt;rows&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, rowOrAffectedCount, lastInsertId&amp;lt;&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&amp;gt; &lt;/ins&gt;on success.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Examples ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Examples ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:53:30 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:DbPoll</comments>
		</item>
		<item>
			<title>TriggerServerEvent</title>
			<link>https://g1r-mp.com/wiki/index.php?title=TriggerServerEvent&amp;diff=113&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=TriggerServerEvent&amp;diff=113&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: triggerServerEvent. --&amp;gt;&lt;br /&gt;
= triggerServerEvent =&lt;br /&gt;
Sends a reliable ordered resource event from the local client to the server.&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 triggerServerEvent(string eventName, element sourceElement, ...)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;eventName&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || The server event name, up to 128 bytes.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;sourceElement&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;element&amp;lt;/code&amp;gt; || yes || The event source; normally &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;...&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;nil/bool/number/string&amp;lt;/code&amp;gt; || no || Values sent with the event.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the event is queued for transmission; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Request an item from the server:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
triggerServerEvent(&amp;quot;inventory:requestItem&amp;quot;, root, &amp;quot;ITMW_1H_SWORD_01&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in client-side resource scripts.&lt;br /&gt;
* The server must declare the event with &amp;lt;code&amp;gt;addEvent(eventName, true)&amp;lt;/code&amp;gt; and validate the true sender before changing authoritative state.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client Functions]]&lt;br /&gt;
[[Category:Network Functions]]&lt;br /&gt;
[[Category:Event Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:47 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:TriggerServerEvent</comments>
		</item>
		<item>
			<title>TriggerEvent</title>
			<link>https://g1r-mp.com/wiki/index.php?title=TriggerEvent&amp;diff=112&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=TriggerEvent&amp;diff=112&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: triggerEvent. --&amp;gt;&lt;br /&gt;
= triggerEvent =&lt;br /&gt;
Triggers a custom event inside the current runtime.&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 triggerEvent(string eventName, element sourceElement, ...)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;eventName&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || The custom event name.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;sourceElement&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;element&amp;lt;/code&amp;gt; || yes || The source exposed to event handlers.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;...&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;nil/bool/number/string&amp;lt;/code&amp;gt; || yes || Optional event arguments.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the event is dispatched successfully; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Trigger a local resource event:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
addEvent(&amp;quot;round:started&amp;quot;)&lt;br /&gt;
addEventHandler(&amp;quot;round:started&amp;quot;, root, function(roundNumber)&lt;br /&gt;
    print(&amp;quot;Round&amp;quot;, roundNumber, &amp;quot;started&amp;quot;)&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
triggerEvent(&amp;quot;round:started&amp;quot;, root, 3)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available in both client-side and server-side resource scripts.&lt;br /&gt;
* Event arguments are limited to nil, boolean, number and string values.&lt;br /&gt;
&lt;br /&gt;
[[Category:Shared Functions]]&lt;br /&gt;
[[Category:Event Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:46 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:TriggerEvent</comments>
		</item>
		<item>
			<title>TriggerClientEvent</title>
			<link>https://g1r-mp.com/wiki/index.php?title=TriggerClientEvent&amp;diff=111&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=TriggerClientEvent&amp;diff=111&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: triggerClientEvent. --&amp;gt;&lt;br /&gt;
= triggerClientEvent =&lt;br /&gt;
Sends a reliable ordered resource event from the server to one player or all players.&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 triggerClientEvent(root|int target, string eventName, element sourceElement, ...)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;target&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;root{{!}}int&amp;lt;/code&amp;gt; || yes || Use a player id for one client, or root/nil to broadcast.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;eventName&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || The client event name.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;sourceElement&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;element&amp;lt;/code&amp;gt; || yes || The event source; normally &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;...&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;nil/bool/number/string&amp;lt;/code&amp;gt; || no || Values sent with the event.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the event is queued for transmission; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Display a client notification for one player:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
triggerClientEvent(playerId, &amp;quot;ui:notification&amp;quot;, root, &amp;quot;Quest completed&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
* The client resource must declare the event with &amp;lt;code&amp;gt;addEvent(eventName, true)&amp;lt;/code&amp;gt;. Network arguments are limited to nil, boolean, number and string.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Network Functions]]&lt;br /&gt;
[[Category:Event Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:44 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:TriggerClientEvent</comments>
		</item>
		<item>
			<title>SetTimer</title>
			<link>https://g1r-mp.com/wiki/index.php?title=SetTimer&amp;diff=110&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=SetTimer&amp;diff=110&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: setTimer. --&amp;gt;&lt;br /&gt;
= setTimer =&lt;br /&gt;
Schedules a Lua function to run after a delay, optionally more than once.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int setTimer(function callback, int intervalMs, int timesToExecute, ...)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;callback&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;function&amp;lt;/code&amp;gt; || yes || The function to execute.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;intervalMs&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || Delay between executions in milliseconds. The minimum is 10.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;timesToExecute&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || Number of executions. Use 0 to repeat indefinitely.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;...&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;any&amp;lt;/code&amp;gt; || no || Optional values passed to the callback each time it runs.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns a positive timer identifier on success, or &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; when the timer could not be created.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Print a message three times at one-second intervals:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
local timer = setTimer(function(message)&lt;br /&gt;
    print(message)&lt;br /&gt;
end, 1000, 3, &amp;quot;One second passed&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available in both client-side and server-side resource scripts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Shared Functions]]&lt;br /&gt;
[[Category:Timer Functions]]&lt;br /&gt;
[[Category:Utility Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:43 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:SetTimer</comments>
		</item>
		<item>
			<title>SetPlayerStrength</title>
			<link>https://g1r-mp.com/wiki/index.php?title=SetPlayerStrength&amp;diff=109&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=SetPlayerStrength&amp;diff=109&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: setPlayerStrength. --&amp;gt;&lt;br /&gt;
= setPlayerStrength =&lt;br /&gt;
Sets a player&amp;#039;s authoritative strength value.&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 setPlayerStrength(int playerId, number value)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;playerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || The connected player to update.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;value&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || yes || The new strength value.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the value is accepted; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Set a player&amp;#039;s strength:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
setPlayerStrength(playerId, 50)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
* This is a convenience wrapper around &amp;lt;code&amp;gt;setPlayerStat(playerId, &amp;quot;strength&amp;quot;, value)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Progression Functions]]&lt;br /&gt;
[[Category:Player Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:41 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:SetPlayerStrength</comments>
		</item>
		<item>
			<title>SetPlayerStat</title>
			<link>https://g1r-mp.com/wiki/index.php?title=SetPlayerStat&amp;diff=108&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=SetPlayerStat&amp;diff=108&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: setPlayerStat. --&amp;gt;&lt;br /&gt;
= setPlayerStat =&lt;br /&gt;
Sets an authoritative numeric progression stat for a connected player.&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 setPlayerStat(int playerId, string statName, number value)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;playerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || The connected player to update.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;statName&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || A supported stat key.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;value&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || yes || The new value, clamped to the stat&amp;#039;s allowed range.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the update is accepted; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Set a player&amp;#039;s strength:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
if not setPlayerStat(playerId, &amp;quot;strength&amp;quot;, 50) then&lt;br /&gt;
    outputDebugString(&amp;quot;Could not set strength&amp;quot;, 1)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
* Progression changes are server-authoritative and replicated to the owning client.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Progression Functions]]&lt;br /&gt;
[[Category:Player Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:40 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:SetPlayerStat</comments>
		</item>
		<item>
			<title>SetPlayerSpellGranted</title>
			<link>https://g1r-mp.com/wiki/index.php?title=SetPlayerSpellGranted&amp;diff=107&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=SetPlayerSpellGranted&amp;diff=107&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: setPlayerSpellGranted. --&amp;gt;&lt;br /&gt;
= setPlayerSpellGranted =&lt;br /&gt;
Sets or clears an authoritative spell grant for a player.&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 setPlayerSpellGranted(int playerId, int|string spell [, bool enabled = true])&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;playerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || The connected player to update.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;spell&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int{{!}}string&amp;lt;/code&amp;gt; || yes || A spell id or stable key.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;enabled&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;bool&amp;lt;/code&amp;gt; || no || True to grant the spell, false to revoke it.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the grant state is accepted; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Grant Fire Arrow to a player:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
setPlayerSpellGranted(playerId, SPELL.FIRE_ARROW, true)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Magic Functions]]&lt;br /&gt;
[[Category:Progression Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:38 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:SetPlayerSpellGranted</comments>
		</item>
		<item>
			<title>SetPlayerSkillPoints</title>
			<link>https://g1r-mp.com/wiki/index.php?title=SetPlayerSkillPoints&amp;diff=106&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=SetPlayerSkillPoints&amp;diff=106&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: setPlayerSkillPoints. --&amp;gt;&lt;br /&gt;
= setPlayerSkillPoints =&lt;br /&gt;
Sets a player&amp;#039;s authoritative available skill points value.&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 setPlayerSkillPoints(int playerId, number value)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;playerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || The connected player to update.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;value&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || yes || The new available skill points value.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the value is accepted; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Set a player&amp;#039;s available skill points:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
setPlayerSkillPoints(playerId, 50)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
* This is a convenience wrapper around &amp;lt;code&amp;gt;setPlayerStat(playerId, &amp;quot;skill_points&amp;quot;, value)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Progression Functions]]&lt;br /&gt;
[[Category:Player Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:37 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:SetPlayerSkillPoints</comments>
		</item>
		<item>
			<title>SetPlayerSkill</title>
			<link>https://g1r-mp.com/wiki/index.php?title=SetPlayerSkill&amp;diff=105&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=SetPlayerSkill&amp;diff=105&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: setPlayerSkill. --&amp;gt;&lt;br /&gt;
= setPlayerSkill =&lt;br /&gt;
Enables or disables an authoritative boolean player skill.&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 setPlayerSkill(int playerId, string skillName, bool enabled)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;playerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || The connected player to update.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;skillName&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || A key returned by &amp;lt;code&amp;gt;getPlayerSkillNames&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;enabled&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;bool&amp;lt;/code&amp;gt; || yes || Whether the skill should be enabled.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the skill state is accepted; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Teach a player the acrobatics skill:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
setPlayerSkill(playerId, &amp;quot;acrobatics&amp;quot;, true)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Progression Functions]]&lt;br /&gt;
[[Category:Player Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:35 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:SetPlayerSkill</comments>
		</item>
		<item>
			<title>SetPlayerMaxMana</title>
			<link>https://g1r-mp.com/wiki/index.php?title=SetPlayerMaxMana&amp;diff=104&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=SetPlayerMaxMana&amp;diff=104&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: setPlayerMaxMana. --&amp;gt;&lt;br /&gt;
= setPlayerMaxMana =&lt;br /&gt;
Sets a player&amp;#039;s authoritative maximum mana value.&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 setPlayerMaxMana(int playerId, number value)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;playerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || The connected player to update.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;value&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || yes || The new maximum mana value.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the value is accepted; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Set a player&amp;#039;s maximum mana:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
setPlayerMaxMana(playerId, 50)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
* This is a convenience wrapper around &amp;lt;code&amp;gt;setPlayerStat(playerId, &amp;quot;max_mana&amp;quot;, value)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Progression Functions]]&lt;br /&gt;
[[Category:Player Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:34 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:SetPlayerMaxMana</comments>
		</item>
		<item>
			<title>SetPlayerMaxHealth</title>
			<link>https://g1r-mp.com/wiki/index.php?title=SetPlayerMaxHealth&amp;diff=103&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=SetPlayerMaxHealth&amp;diff=103&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: setPlayerMaxHealth. --&amp;gt;&lt;br /&gt;
= setPlayerMaxHealth =&lt;br /&gt;
Sets a player&amp;#039;s authoritative maximum health value.&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 setPlayerMaxHealth(int playerId, number value)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;playerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || The connected player to update.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;value&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || yes || The new maximum health value.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the value is accepted; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Set a player&amp;#039;s maximum health:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
setPlayerMaxHealth(playerId, 50)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
* This is a convenience wrapper around &amp;lt;code&amp;gt;setPlayerStat(playerId, &amp;quot;max_health&amp;quot;, value)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Progression Functions]]&lt;br /&gt;
[[Category:Player Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:32 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:SetPlayerMaxHealth</comments>
		</item>
		<item>
			<title>SetPlayerMana</title>
			<link>https://g1r-mp.com/wiki/index.php?title=SetPlayerMana&amp;diff=102&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=SetPlayerMana&amp;diff=102&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: setPlayerMana. --&amp;gt;&lt;br /&gt;
= setPlayerMana =&lt;br /&gt;
Sets a player&amp;#039;s authoritative current mana value.&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 setPlayerMana(int playerId, number value)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;playerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || The connected player to update.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;value&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || yes || The new current mana value.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the value is accepted; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Set a player&amp;#039;s current mana:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
setPlayerMana(playerId, 50)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
* This is a convenience wrapper around &amp;lt;code&amp;gt;setPlayerStat(playerId, &amp;quot;mana&amp;quot;, value)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Progression Functions]]&lt;br /&gt;
[[Category:Player Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:31 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:SetPlayerMana</comments>
		</item>
		<item>
			<title>SetPlayerMagicCircle</title>
			<link>https://g1r-mp.com/wiki/index.php?title=SetPlayerMagicCircle&amp;diff=101&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=SetPlayerMagicCircle&amp;diff=101&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: setPlayerMagicCircle. --&amp;gt;&lt;br /&gt;
= setPlayerMagicCircle =&lt;br /&gt;
Sets the authoritative magic circle and updates the related circle skills coherently.&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 setPlayerMagicCircle(int playerId, int circle)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;playerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || The connected player to update.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;circle&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || Magic circle from 0 through 6.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the circle is accepted; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Grant the sixth circle of magic:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
setPlayerMagicCircle(playerId, 6)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
* The function updates &amp;lt;code&amp;gt;magician_level&amp;lt;/code&amp;gt; and the corresponding circle skill flags as one authoritative operation.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Magic Functions]]&lt;br /&gt;
[[Category:Progression Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:30 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:SetPlayerMagicCircle</comments>
		</item>
		<item>
			<title>SetPlayerLevel</title>
			<link>https://g1r-mp.com/wiki/index.php?title=SetPlayerLevel&amp;diff=100&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=SetPlayerLevel&amp;diff=100&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: setPlayerLevel. --&amp;gt;&lt;br /&gt;
= setPlayerLevel =&lt;br /&gt;
Sets a player&amp;#039;s authoritative character level value.&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 setPlayerLevel(int playerId, number value)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;playerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || The connected player to update.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;value&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || yes || The new character level value.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the value is accepted; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Set a player&amp;#039;s character level:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
setPlayerLevel(playerId, 50)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
* This is a convenience wrapper around &amp;lt;code&amp;gt;setPlayerStat(playerId, &amp;quot;level&amp;quot;, value)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Progression Functions]]&lt;br /&gt;
[[Category:Player Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:28 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:SetPlayerLevel</comments>
		</item>
		<item>
			<title>SetPlayerHealth</title>
			<link>https://g1r-mp.com/wiki/index.php?title=SetPlayerHealth&amp;diff=99&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=SetPlayerHealth&amp;diff=99&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: setPlayerHealth. --&amp;gt;&lt;br /&gt;
= setPlayerHealth =&lt;br /&gt;
Sets a player&amp;#039;s authoritative current health value.&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 setPlayerHealth(int playerId, number value)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;playerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || The connected player to update.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;value&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || yes || The new current health value.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the value is accepted; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Set a player&amp;#039;s current health:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
setPlayerHealth(playerId, 50)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
* This is a convenience wrapper around &amp;lt;code&amp;gt;setPlayerStat(playerId, &amp;quot;health&amp;quot;, value)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Progression Functions]]&lt;br /&gt;
[[Category:Player Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:27 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:SetPlayerHealth</comments>
		</item>
		<item>
			<title>SetPlayerGuild</title>
			<link>https://g1r-mp.com/wiki/index.php?title=SetPlayerGuild&amp;diff=98&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=SetPlayerGuild&amp;diff=98&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: setPlayerGuild. --&amp;gt;&lt;br /&gt;
= setPlayerGuild =&lt;br /&gt;
Sets a player&amp;#039;s authoritative guild membership.&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 setPlayerGuild(int playerId, string guildName)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;playerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || The connected player to update.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;guildName&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || A key returned by &amp;lt;code&amp;gt;getPlayerGuildNames&amp;lt;/code&amp;gt;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the guild is accepted; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Assign a player to a guild:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
setPlayerGuild(playerId, &amp;quot;old_camp&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Progression Functions]]&lt;br /&gt;
[[Category:Player Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:25 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:SetPlayerGuild</comments>
		</item>
		<item>
			<title>SetPlayerExperience</title>
			<link>https://g1r-mp.com/wiki/index.php?title=SetPlayerExperience&amp;diff=97&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=SetPlayerExperience&amp;diff=97&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: setPlayerExperience. --&amp;gt;&lt;br /&gt;
= setPlayerExperience =&lt;br /&gt;
Sets a player&amp;#039;s authoritative experience value.&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 setPlayerExperience(int playerId, number value)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;playerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || The connected player to update.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;value&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || yes || The new experience value.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the value is accepted; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Set a player&amp;#039;s experience:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
setPlayerExperience(playerId, 50)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
* This is a convenience wrapper around &amp;lt;code&amp;gt;setPlayerStat(playerId, &amp;quot;experience&amp;quot;, value)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Progression Functions]]&lt;br /&gt;
[[Category:Player Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:24 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:SetPlayerExperience</comments>
		</item>
		<item>
			<title>SetPlayerDexterity</title>
			<link>https://g1r-mp.com/wiki/index.php?title=SetPlayerDexterity&amp;diff=96&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=SetPlayerDexterity&amp;diff=96&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: setPlayerDexterity. --&amp;gt;&lt;br /&gt;
= setPlayerDexterity =&lt;br /&gt;
Sets a player&amp;#039;s authoritative dexterity value.&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 setPlayerDexterity(int playerId, number value)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;playerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || The connected player to update.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;value&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || yes || The new dexterity value.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the value is accepted; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Set a player&amp;#039;s dexterity:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
setPlayerDexterity(playerId, 50)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
* This is a convenience wrapper around &amp;lt;code&amp;gt;setPlayerStat(playerId, &amp;quot;dexterity&amp;quot;, value)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Progression Functions]]&lt;br /&gt;
[[Category:Player Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:22 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:SetPlayerDexterity</comments>
		</item>
		<item>
			<title>RevokePlayerSpell</title>
			<link>https://g1r-mp.com/wiki/index.php?title=RevokePlayerSpell&amp;diff=95&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=RevokePlayerSpell&amp;diff=95&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: revokePlayerSpell. --&amp;gt;&lt;br /&gt;
= revokePlayerSpell =&lt;br /&gt;
Revokes an authoritative spell grant from a player.&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 revokePlayerSpell(int playerId, int|string spell)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;playerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || The connected player to update.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;spell&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int{{!}}string&amp;lt;/code&amp;gt; || yes || A spell id or stable key.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the spell is revoked; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Remove Fire Arrow from a player:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
revokePlayerSpell(playerId, SPELL.FIRE_ARROW)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Magic Functions]]&lt;br /&gt;
[[Category:Progression Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:21 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:RevokePlayerSpell</comments>
		</item>
		<item>
			<title>RemoveEventHandler</title>
			<link>https://g1r-mp.com/wiki/index.php?title=RemoveEventHandler&amp;diff=94&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=RemoveEventHandler&amp;diff=94&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: removeEventHandler. --&amp;gt;&lt;br /&gt;
= removeEventHandler =&lt;br /&gt;
Removes a previously registered event callback.&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 removeEventHandler(string eventName, element attachedTo, function handler)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;eventName&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || The event from which to remove the handler.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;attachedTo&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;element&amp;lt;/code&amp;gt; || yes || The same attachment target used with &amp;lt;code&amp;gt;addEventHandler&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;handler&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;function&amp;lt;/code&amp;gt; || yes || The exact Lua function previously registered.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; if a matching handler was removed; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Register and later remove a handler:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
local function onRoundEnd()&lt;br /&gt;
    print(&amp;quot;Round ended&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;round:end&amp;quot;, root, onRoundEnd)&lt;br /&gt;
removeEventHandler(&amp;quot;round:end&amp;quot;, root, onRoundEnd)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available in both client-side and server-side resource scripts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Shared Functions]]&lt;br /&gt;
[[Category:Event Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:19 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:RemoveEventHandler</comments>
		</item>
		<item>
			<title>RemoveCommandHandler</title>
			<link>https://g1r-mp.com/wiki/index.php?title=RemoveCommandHandler&amp;diff=93&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=RemoveCommandHandler&amp;diff=93&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: removeCommandHandler. --&amp;gt;&lt;br /&gt;
= removeCommandHandler =&lt;br /&gt;
Removes a command handler owned by the current resource.&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 removeCommandHandler(string commandName)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;commandName&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || Command name without the leading slash.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; if a handler was removed; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Remove a command during resource shutdown:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
removeCommandHandler(&amp;quot;heal&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Command Functions]]&lt;br /&gt;
[[Category:Chat Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:18 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:RemoveCommandHandler</comments>
		</item>
		<item>
			<title>Print</title>
			<link>https://g1r-mp.com/wiki/index.php?title=Print&amp;diff=92&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=Print&amp;diff=92&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: print. --&amp;gt;&lt;br /&gt;
= print =&lt;br /&gt;
Writes one or more Lua values to the resource log, separated by tabs.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
print(...)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;...&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;any&amp;lt;/code&amp;gt; || yes || Values to print. Strings, numbers, booleans and nil are formatted directly.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
This function does not return a value.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Print a player&amp;#039;s identifier and current state:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
local playerId = 7&lt;br /&gt;
local state = &amp;quot;ready&amp;quot;&lt;br /&gt;
print(&amp;quot;Player&amp;quot;, playerId, state)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available in both client-side and server-side resource scripts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Shared Functions]]&lt;br /&gt;
[[Category:Debug Functions]]&lt;br /&gt;
[[Category:Utility Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:16 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:Print</comments>
		</item>
		<item>
			<title>OutputDebugString</title>
			<link>https://g1r-mp.com/wiki/index.php?title=OutputDebugString&amp;diff=91&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=OutputDebugString&amp;diff=91&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: outputDebugString. --&amp;gt;&lt;br /&gt;
= outputDebugString =&lt;br /&gt;
Writes a message to the resource log at the requested severity level.&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 outputDebugString(string message [, int level = 3])&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;message&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || The text to write to the resource log.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;level&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || no || The severity: 1 for error, 2 for warning, or 3 for information.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; after the message has been accepted.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Write an informational message to the log:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
outputDebugString(&amp;quot;The resource has started&amp;quot;, 3)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available in both client-side and server-side resource scripts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Shared Functions]]&lt;br /&gt;
[[Category:Debug Functions]]&lt;br /&gt;
[[Category:Utility Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:15 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:OutputDebugString</comments>
		</item>
		<item>
			<title>OutputChatBox</title>
			<link>https://g1r-mp.com/wiki/index.php?title=OutputChatBox&amp;diff=90&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=OutputChatBox&amp;diff=90&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: outputChatBox. --&amp;gt;&lt;br /&gt;
= outputChatBox =&lt;br /&gt;
Sends a chat message to all players, one player, or a table of player identifiers.&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 outputChatBox(string message [, mixed visibleTo = root [, int red = 231 [, int green = 217 [, int blue = 176 [, bool colorCoded = false]]]]])&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;message&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || The message to send.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;visibleTo&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;root{{!}}int{{!}}table&amp;lt;/code&amp;gt; || no || Broadcast target: root/nil, one player id, or a table of player ids.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;red&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || no || Red color channel from 0 to 255.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;green&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || no || Green color channel from 0 to 255.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;blue&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || no || Blue color channel from 0 to 255.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;colorCoded&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;bool&amp;lt;/code&amp;gt; || no || Whether inline color codes should be interpreted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the message is accepted for delivery; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Send a green message to nearby players:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
local recipients = getPlayersInRange(playerId, 25, true)&lt;br /&gt;
outputChatBox(&amp;quot;[Local] &amp;quot; .. message, recipients, 160, 220, 160, false)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Chat Functions]]&lt;br /&gt;
[[Category:Player Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:13 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:OutputChatBox</comments>
		</item>
		<item>
			<title>KillTimer</title>
			<link>https://g1r-mp.com/wiki/index.php?title=KillTimer&amp;diff=89&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=KillTimer&amp;diff=89&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: killTimer. --&amp;gt;&lt;br /&gt;
= killTimer =&lt;br /&gt;
Cancels an active timer.&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 killTimer(int timerId)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;timerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || The identifier returned by &amp;lt;code&amp;gt;setTimer&amp;lt;/code&amp;gt;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; if an active timer was cancelled; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Create and cancel a repeating timer:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
local timer = setTimer(function()&lt;br /&gt;
    print(&amp;quot;tick&amp;quot;)&lt;br /&gt;
end, 1000, 0)&lt;br /&gt;
&lt;br /&gt;
killTimer(timer)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available in both client-side and server-side resource scripts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Shared Functions]]&lt;br /&gt;
[[Category:Timer Functions]]&lt;br /&gt;
[[Category:Utility Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:12 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:KillTimer</comments>
		</item>
		<item>
			<title>IsTimer</title>
			<link>https://g1r-mp.com/wiki/index.php?title=IsTimer&amp;diff=88&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=IsTimer&amp;diff=88&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: isTimer. --&amp;gt;&lt;br /&gt;
= isTimer =&lt;br /&gt;
Checks whether a timer identifier still refers to an active timer.&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 isTimer(int timerId)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;timerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || The timer identifier to inspect.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; for an active timer; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Check a timer before cancelling it:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
local timer = setTimer(function() end, 5000, 1)&lt;br /&gt;
if isTimer(timer) then&lt;br /&gt;
    killTimer(timer)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available in both client-side and server-side resource scripts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Shared Functions]]&lt;br /&gt;
[[Category:Timer Functions]]&lt;br /&gt;
[[Category:Utility Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:11 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:IsTimer</comments>
		</item>
		<item>
			<title>IsPlayerSpellGranted</title>
			<link>https://g1r-mp.com/wiki/index.php?title=IsPlayerSpellGranted&amp;diff=87&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=IsPlayerSpellGranted&amp;diff=87&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: isPlayerSpellGranted. --&amp;gt;&lt;br /&gt;
= isPlayerSpellGranted =&lt;br /&gt;
Checks whether a player has an authoritative spell grant.&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 isPlayerSpellGranted(int playerId, int|string spell)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;playerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || The connected player to inspect.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;spell&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int{{!}}string&amp;lt;/code&amp;gt; || yes || A spell id or stable key.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; if the spell is granted; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Check for Fire Arrow before granting it:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
if not isPlayerSpellGranted(playerId, SPELL.FIRE_ARROW) then&lt;br /&gt;
    grantPlayerSpell(playerId, SPELL.FIRE_ARROW)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Magic Functions]]&lt;br /&gt;
[[Category:Player Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:09 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:IsPlayerSpellGranted</comments>
		</item>
		<item>
			<title>IsPlayerConnected</title>
			<link>https://g1r-mp.com/wiki/index.php?title=IsPlayerConnected&amp;diff=86&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=IsPlayerConnected&amp;diff=86&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: isPlayerConnected. --&amp;gt;&lt;br /&gt;
= isPlayerConnected =&lt;br /&gt;
Checks whether a player identifier belongs to a connected client.&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 isPlayerConnected(int playerId)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;playerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || The player identifier to check.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the player is connected; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Validate a player before changing state:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
if isPlayerConnected(playerId) then&lt;br /&gt;
    outputChatBox(&amp;quot;You are connected&amp;quot;, playerId)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Player Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:08 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:IsPlayerConnected</comments>
		</item>
		<item>
			<title>GuiShow</title>
			<link>https://g1r-mp.com/wiki/index.php?title=GuiShow&amp;diff=85&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=GuiShow&amp;diff=85&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: guiShow. --&amp;gt;&lt;br /&gt;
= guiShow =&lt;br /&gt;
Shows a loaded RML document.&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 guiShow(DocumentHandle document)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;document&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;DocumentHandle&amp;lt;/code&amp;gt; || yes || The document to show.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the document is shown; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Show a previously loaded menu:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
local menu = guiLoadDocument(&amp;quot;ui/menu.rml&amp;quot;)&lt;br /&gt;
guiShow(menu)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in client-side resource scripts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client Functions]]&lt;br /&gt;
[[Category:GUI Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:06 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:GuiShow</comments>
		</item>
		<item>
			<title>GuiSetValue</title>
			<link>https://g1r-mp.com/wiki/index.php?title=GuiSetValue&amp;diff=84&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=GuiSetValue&amp;diff=84&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: guiSetValue. --&amp;gt;&lt;br /&gt;
= guiSetValue =&lt;br /&gt;
Sets the value of an element in a loaded RML document.&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 guiSetValue(DocumentHandle document, string elementId, string value)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;document&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;DocumentHandle&amp;lt;/code&amp;gt; || yes || The owning document.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;elementId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || The target element&amp;#039;s id attribute.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;value&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || The new value.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the value is updated; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Fill a text input:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
guiSetValue(chatDocument, &amp;quot;chat-input&amp;quot;, &amp;quot;Hello world&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in client-side resource scripts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client Functions]]&lt;br /&gt;
[[Category:GUI Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:05 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:GuiSetValue</comments>
		</item>
		<item>
			<title>GuiSetInnerRML</title>
			<link>https://g1r-mp.com/wiki/index.php?title=GuiSetInnerRML&amp;diff=83&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=GuiSetInnerRML&amp;diff=83&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: guiSetInnerRML. --&amp;gt;&lt;br /&gt;
= guiSetInnerRML =&lt;br /&gt;
Replaces the child markup of an RML element.&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 guiSetInnerRML(DocumentHandle document, string elementId, string rml)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;document&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;DocumentHandle&amp;lt;/code&amp;gt; || yes || The owning document.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;elementId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || The target element&amp;#039;s id attribute.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;rml&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || RML markup to place inside the element.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the markup is replaced; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Update a status label:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
guiSetInnerRML(hudDocument, &amp;quot;status&amp;quot;, &amp;quot;&amp;lt;strong&amp;gt;Connected&amp;lt;/strong&amp;gt;&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in client-side resource scripts.&lt;br /&gt;
* Only insert trusted or properly escaped text into RML markup.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client Functions]]&lt;br /&gt;
[[Category:GUI Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:04 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:GuiSetInnerRML</comments>
		</item>
		<item>
			<title>GuiSetClass</title>
			<link>https://g1r-mp.com/wiki/index.php?title=GuiSetClass&amp;diff=82&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=GuiSetClass&amp;diff=82&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: guiSetClass. --&amp;gt;&lt;br /&gt;
= guiSetClass =&lt;br /&gt;
Adds or removes an RCSS class on an RML element.&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 guiSetClass(DocumentHandle document, string elementId, string className, bool enabled)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;document&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;DocumentHandle&amp;lt;/code&amp;gt; || yes || The owning document.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;elementId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || The target element&amp;#039;s id attribute.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;className&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || The RCSS class name.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;enabled&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;bool&amp;lt;/code&amp;gt; || yes || True to add the class, false to remove it.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the class list is changed; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Highlight a selected inventory slot:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
guiSetClass(inventoryDocument, &amp;quot;slot-3&amp;quot;, &amp;quot;selected&amp;quot;, true)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in client-side resource scripts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client Functions]]&lt;br /&gt;
[[Category:GUI Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:02 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:GuiSetClass</comments>
		</item>
		<item>
			<title>GuiSetChatActive</title>
			<link>https://g1r-mp.com/wiki/index.php?title=GuiSetChatActive&amp;diff=81&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=GuiSetChatActive&amp;diff=81&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: guiSetChatActive. --&amp;gt;&lt;br /&gt;
= guiSetChatActive =&lt;br /&gt;
Activates or deactivates chat input mode.&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 guiSetChatActive(bool active)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;active&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;bool&amp;lt;/code&amp;gt; || yes || True to capture input for chat, false to return input to the game.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the chat state is changed; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Open chat input and close it shortly afterward:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
guiSetChatActive(true)&lt;br /&gt;
setTimer(function()&lt;br /&gt;
    guiSetChatActive(false)&lt;br /&gt;
end, 5000, 1)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in client-side resource scripts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client Functions]]&lt;br /&gt;
[[Category:GUI Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:45:01 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:GuiSetChatActive</comments>
		</item>
		<item>
			<title>GuiRegisterChat</title>
			<link>https://g1r-mp.com/wiki/index.php?title=GuiRegisterChat&amp;diff=80&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=GuiRegisterChat&amp;diff=80&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: guiRegisterChat. --&amp;gt;&lt;br /&gt;
= guiRegisterChat =&lt;br /&gt;
Registers an RML document and its composer elements as the resource chat interface.&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 guiRegisterChat(DocumentHandle document, string composerId, string inputId)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;document&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;DocumentHandle&amp;lt;/code&amp;gt; || yes || The chat document.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;composerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || The id of the composer container.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;inputId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || The id of the text input element.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the chat interface is registered; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Register a custom chat document:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
local chat = guiLoadDocument(&amp;quot;ui/chat.rml&amp;quot;)&lt;br /&gt;
guiRegisterChat(chat, &amp;quot;chat-composer&amp;quot;, &amp;quot;chat-input&amp;quot;)&lt;br /&gt;
guiShow(chat)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in client-side resource scripts.&lt;br /&gt;
* Only one active chat registration is expected for the client UI.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client Functions]]&lt;br /&gt;
[[Category:GUI Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:44:59 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:GuiRegisterChat</comments>
		</item>
		<item>
			<title>GuiLoadDocument</title>
			<link>https://g1r-mp.com/wiki/index.php?title=GuiLoadDocument&amp;diff=79&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=GuiLoadDocument&amp;diff=79&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: guiLoadDocument. --&amp;gt;&lt;br /&gt;
= guiLoadDocument =&lt;br /&gt;
Loads an RML document owned by the current client resource.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DocumentHandle guiLoadDocument(string relativePath)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;relativePath&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || Path to the RML file relative to the resource root.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns a document handle on success, or an invalid handle when loading fails.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Load and display a HUD document:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
local hud = guiLoadDocument(&amp;quot;ui/hud.rml&amp;quot;)&lt;br /&gt;
if hud then&lt;br /&gt;
    guiShow(hud)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in client-side resource scripts.&lt;br /&gt;
* Document paths cannot escape the current resource directory.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client Functions]]&lt;br /&gt;
[[Category:GUI Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:44:58 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:GuiLoadDocument</comments>
		</item>
		<item>
			<title>GuiHide</title>
			<link>https://g1r-mp.com/wiki/index.php?title=GuiHide&amp;diff=78&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=GuiHide&amp;diff=78&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: guiHide. --&amp;gt;&lt;br /&gt;
= guiHide =&lt;br /&gt;
Hides an RML document without destroying it.&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 guiHide(DocumentHandle document)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;document&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;DocumentHandle&amp;lt;/code&amp;gt; || yes || The document to hide.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the document is hidden; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Temporarily hide a menu:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
guiHide(menuDocument)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in client-side resource scripts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client Functions]]&lt;br /&gt;
[[Category:GUI Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:44:56 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:GuiHide</comments>
		</item>
		<item>
			<title>GuiGetValue</title>
			<link>https://g1r-mp.com/wiki/index.php?title=GuiGetValue&amp;diff=77&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=GuiGetValue&amp;diff=77&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: guiGetValue. --&amp;gt;&lt;br /&gt;
= guiGetValue =&lt;br /&gt;
Reads the value of an element in a loaded RML document.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string guiGetValue(DocumentHandle document, string elementId)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;document&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;DocumentHandle&amp;lt;/code&amp;gt; || yes || The owning document.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;elementId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || The target element&amp;#039;s id attribute.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns the element value as a string, or &amp;lt;code&amp;gt;nil&amp;lt;/code&amp;gt; if it cannot be read.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Read and print a text input:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
local message = guiGetValue(chatDocument, &amp;quot;chat-input&amp;quot;)&lt;br /&gt;
if message then&lt;br /&gt;
    print(message)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in client-side resource scripts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client Functions]]&lt;br /&gt;
[[Category:GUI Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:44:55 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:GuiGetValue</comments>
		</item>
		<item>
			<title>GuiFocus</title>
			<link>https://g1r-mp.com/wiki/index.php?title=GuiFocus&amp;diff=76&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=GuiFocus&amp;diff=76&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: guiFocus. --&amp;gt;&lt;br /&gt;
= guiFocus =&lt;br /&gt;
Moves keyboard focus to an element in an RML document.&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 guiFocus(DocumentHandle document, string elementId)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;document&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;DocumentHandle&amp;lt;/code&amp;gt; || yes || The owning document.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;elementId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || The element that should receive focus.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when focus is applied; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Focus the chat input after opening chat:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
guiShow(chatDocument)&lt;br /&gt;
guiFocus(chatDocument, &amp;quot;chat-input&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in client-side resource scripts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client Functions]]&lt;br /&gt;
[[Category:GUI Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:44:53 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:GuiFocus</comments>
		</item>
		<item>
			<title>GuiClose</title>
			<link>https://g1r-mp.com/wiki/index.php?title=GuiClose&amp;diff=75&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=GuiClose&amp;diff=75&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: guiClose. --&amp;gt;&lt;br /&gt;
= guiClose =&lt;br /&gt;
Closes an RML document and releases its runtime handle.&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 guiClose(DocumentHandle document)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;document&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;DocumentHandle&amp;lt;/code&amp;gt; || yes || The document to close.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the document is closed; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Close a temporary dialog:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
guiClose(dialogDocument)&lt;br /&gt;
dialogDocument = nil&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in client-side resource scripts.&lt;br /&gt;
* Do not use the document handle after it has been closed.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client Functions]]&lt;br /&gt;
[[Category:GUI Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:44:52 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:GuiClose</comments>
		</item>
		<item>
			<title>GuiAppendText</title>
			<link>https://g1r-mp.com/wiki/index.php?title=GuiAppendText&amp;diff=74&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=GuiAppendText&amp;diff=74&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: guiAppendText. --&amp;gt;&lt;br /&gt;
= guiAppendText =&lt;br /&gt;
Appends an escaped text entry to an RML element.&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 guiAppendText(DocumentHandle document, string elementId, string text [, string className = &amp;quot;&amp;quot; [, string color = &amp;quot;&amp;quot;]])&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;document&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;DocumentHandle&amp;lt;/code&amp;gt; || yes || The owning document.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;elementId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || The container element&amp;#039;s id attribute.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;text&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || The text to append.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;className&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || no || An optional RCSS class for the created entry.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;color&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || no || An optional CSS-compatible text color.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the entry is appended; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Append a colored system message to chat:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
guiAppendText(chatDocument, &amp;quot;messages&amp;quot;, &amp;quot;Connected to the server&amp;quot;, &amp;quot;system&amp;quot;, &amp;quot;#9ad17b&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in client-side resource scripts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Client Functions]]&lt;br /&gt;
[[Category:GUI Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:44:50 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:GuiAppendText</comments>
		</item>
		<item>
			<title>GrantPlayerSpell</title>
			<link>https://g1r-mp.com/wiki/index.php?title=GrantPlayerSpell&amp;diff=73&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=GrantPlayerSpell&amp;diff=73&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: grantPlayerSpell. --&amp;gt;&lt;br /&gt;
= grantPlayerSpell =&lt;br /&gt;
Grants or clears a player spell. This is a readable alias of setPlayerSpellGranted.&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 grantPlayerSpell(int playerId, int|string spell [, bool enabled = true])&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;playerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || The connected player to update.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;spell&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int{{!}}string&amp;lt;/code&amp;gt; || yes || A spell id or stable key.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;enabled&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;bool&amp;lt;/code&amp;gt; || no || True to grant the spell, false to revoke it.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the grant state is accepted; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Grant Fire Arrow to a player:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
grantPlayerSpell(playerId, SPELL.FIRE_ARROW, true)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Magic Functions]]&lt;br /&gt;
[[Category:Progression Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:44:49 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:GrantPlayerSpell</comments>
		</item>
		<item>
			<title>GrantPlayerConsumable</title>
			<link>https://g1r-mp.com/wiki/index.php?title=GrantPlayerConsumable&amp;diff=72&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=GrantPlayerConsumable&amp;diff=72&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: grantPlayerConsumable. --&amp;gt;&lt;br /&gt;
= grantPlayerConsumable =&lt;br /&gt;
Grants a supported authoritative consumable item to a player.&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 grantPlayerConsumable(int playerId, string itemKey, int count)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;playerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || The connected player receiving the item.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;itemKey&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; || yes || A supported consumable key.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;count&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || Quantity from 1 through 100.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the item grant is accepted; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Grant three strong mana potions:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
grantPlayerConsumable(playerId, &amp;quot;strong_mana_potion&amp;quot;, 3)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
* The current implementation supports &amp;lt;code&amp;gt;strong_mana_potion&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Magic Functions]]&lt;br /&gt;
[[Category:Progression Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:44:48 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:GrantPlayerConsumable</comments>
		</item>
		<item>
			<title>GivePlayerSkillPoints</title>
			<link>https://g1r-mp.com/wiki/index.php?title=GivePlayerSkillPoints&amp;diff=71&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=GivePlayerSkillPoints&amp;diff=71&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: givePlayerSkillPoints. --&amp;gt;&lt;br /&gt;
= givePlayerSkillPoints =&lt;br /&gt;
Adds an amount to a player&amp;#039;s authoritative skill points.&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 givePlayerSkillPoints(int playerId, number amount)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;playerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || The connected player to update.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;amount&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || yes || The amount of skill points to add.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the updated value is accepted; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Award skill points to a player:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
givePlayerSkillPoints(playerId, 100)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
* This is a convenience wrapper around &amp;lt;code&amp;gt;addPlayerStat&amp;lt;/code&amp;gt; for &amp;lt;code&amp;gt;skill_points&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Progression Functions]]&lt;br /&gt;
[[Category:Player Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:44:46 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:GivePlayerSkillPoints</comments>
		</item>
		<item>
			<title>GivePlayerExperience</title>
			<link>https://g1r-mp.com/wiki/index.php?title=GivePlayerExperience&amp;diff=70&amp;oldid=0</link>
			<guid isPermaLink="false">https://g1r-mp.com/wiki/index.php?title=GivePlayerExperience&amp;diff=70&amp;oldid=0</guid>
			<description>&lt;p&gt;Automatyczna aktualizacja dokumentacji funkcji&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- This page is generated automatically from the function definition: givePlayerExperience. --&amp;gt;&lt;br /&gt;
= givePlayerExperience =&lt;br /&gt;
Adds an amount to a player&amp;#039;s authoritative experience.&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 givePlayerExperience(int playerId, number amount)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Type !! Required !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;playerId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; || yes || The connected player to update.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;amount&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || yes || The amount of experience to add.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when the updated value is accepted; otherwise returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Award experience to a player:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; line&amp;gt;&lt;br /&gt;
givePlayerExperience(playerId, 100)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
* Available only in server-side resource scripts.&lt;br /&gt;
* This is a convenience wrapper around &amp;lt;code&amp;gt;addPlayerStat&amp;lt;/code&amp;gt; for &amp;lt;code&amp;gt;experience&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Functions]]&lt;br /&gt;
[[Category:Progression Functions]]&lt;br /&gt;
[[Category:Player Functions]]&lt;/div&gt;</description>
			<pubDate>Tue, 04 Aug 2026 12:44:45 GMT</pubDate>
			<dc:creator>QCherry</dc:creator>
			<comments>https://g1r-mp.com/wiki/index.php?title=Talk:GivePlayerExperience</comments>
		</item>
</channel></rss>