<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.11/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.11/ http://www.mediawiki.org/xml/export-0.11.xsd" version="0.11" xml:lang="en">
  <siteinfo>
    <sitename>Wiki G1R-MP G1 Remake Multiplayer</sitename>
    <dbname>qcherry2_wiki</dbname>
    <base>https://g1r-mp.com/wiki/index.php?title=Main_Page</base>
    <generator>MediaWiki 1.46.0</generator>
    <case>first-letter</case>
    <namespaces>
      <namespace key="-2" case="first-letter">Media</namespace>
      <namespace key="-1" case="first-letter">Special</namespace>
      <namespace key="0" case="first-letter" />
      <namespace key="1" case="first-letter">Talk</namespace>
      <namespace key="2" case="first-letter">User</namespace>
      <namespace key="3" case="first-letter">User talk</namespace>
      <namespace key="4" case="first-letter">Wiki G1R-MP G1 Remake Multiplayer</namespace>
      <namespace key="5" case="first-letter">Wiki G1R-MP G1 Remake Multiplayer talk</namespace>
      <namespace key="6" case="first-letter">File</namespace>
      <namespace key="7" case="first-letter">File talk</namespace>
      <namespace key="8" case="first-letter">MediaWiki</namespace>
      <namespace key="9" case="first-letter">MediaWiki talk</namespace>
      <namespace key="10" case="first-letter">Template</namespace>
      <namespace key="11" case="first-letter">Template talk</namespace>
      <namespace key="12" case="first-letter">Help</namespace>
      <namespace key="13" case="first-letter">Help talk</namespace>
      <namespace key="14" case="first-letter">Category</namespace>
      <namespace key="15" case="first-letter">Category talk</namespace>
    </namespaces>
  </siteinfo>
  <page>
    <title>Main Page</title>
    <ns>0</ns>
    <id>1</id>
    <revision>
      <id>1198</id>
      <parentid>1141</parentid>
      <timestamp>2026-10-01T10:21:21Z</timestamp>
      <contributor>
        <username>QCherry</username>
        <id>2</id>
      </contributor>
      <comment>Document upcoming 0.1.7 game audio: 11 client APIs, result event, limits and complete dialogue catalog; not a release</comment>
      <origin>1198</origin>
      <model>wikitext</model>
      <format>text/x-wiki</format>
      <text bytes="9864" sha1="gkquyaoju9m2vag3xkegys09erz9n2l" xml:space="preserve">__NOTOC__

&lt;div style="background:#111611; color:#eee7d5; border:1px solid #8f7338; border-top:4px solid #c6a251; padding:1.6rem 1.8rem; margin-bottom:1.25rem;"&gt;
&lt;div style="color:#c6a251; font-size:0.78rem; font-weight:bold; letter-spacing:0.08em; text-transform:uppercase;"&gt;Gothic 1 Remake Multiplayer&lt;/div&gt;
&lt;div style="font-size:2.25rem; font-weight:bold; line-height:1.1; margin:0.25rem 0 0.55rem;"&gt;G1R:MP Scripting Wiki&lt;/div&gt;
&lt;div style="max-width:58rem; color:#cfc8b8; font-size:1.02rem; line-height:1.55;"&gt;Build multiplayer resources and gamemodes with Lua 5.1. This wiki documents the server, client, networking, gameplay, database, and RmlUi APIs exposed by G1R:MP.&lt;/div&gt;
&lt;div style="margin-top:1rem; color:#e1c36d; font-size:0.9rem;"&gt;Lua 5.1 &amp;bull; server and client resources &amp;bull; authoritative gameplay &amp;bull; RmlUi&lt;/div&gt;
&lt;/div&gt;

&lt;div style="border:1px solid #b28a3d; border-left:4px solid #b28a3d; background:#faf9f5; padding:0.9rem 1rem; margin:0 0 1.2rem;"&gt;
'''Current public release: G1R:MP 0.1.6 / BUILD174 / Protocol 38.''' Windows client and Windows/Linux dedicated server downloads are available on the [https://g1r-mp.com/download/ Download page]. Update both the client and server. See [[Update 0.1.6]] for scripting additions and migration notes. Protocol 37 and older clients/servers are not compatible with this release.
&lt;/div&gt;

&lt;!-- g1r-upcoming017-game-audio:start --&gt;
&lt;div style="border:1px solid #b89a50; padding:0.85rem 1rem; margin:1rem 0;"&gt;
'''Upcoming 0.1.7: built-in game audio''' — 11 client functions and a result event for game sound effects, music and localized dialogue, including world-positioned 3D audio. See [[Game audio]] and [[Update 0.1.7]]. These APIs are not included in public 0.1.6.
&lt;/div&gt;
&lt;!-- g1r-upcoming017-game-audio:end --&gt;

&lt;!-- upcoming016:start --&gt;
&lt;div style="border:1px solid #6f8461; background:#f5f8f2; padding:0.9rem 1rem; margin-bottom:1.2rem;"&gt;
'''New in [[Update 0.1.6|0.1.6]].''' Four new server-side functions: [[Area notifications|custom area notifications]] and [[Mounts|player-owned rideable scavengers]]. Also includes mounted nameplate/recovery fixes, smoother ordinary doors and pickup performance/animation improvements. See the guides for remaining in-game validation.
&lt;/div&gt;
&lt;!-- upcoming016:end --&gt;

&lt;div style="border:1px solid #6f8461; background:#f5f8f2; padding:0.9rem 1rem; margin-bottom:1.2rem;"&gt;
'''Also included (since [[Update 0.1.5|0.1.5]]).''' [[NPC scripting|NPC combat and scripting]], walk/run pursuit, identity, skin colour, tattoos, player weapon modes and events. Also includes crouch synchronization, melee presentation and knockdown recovery improvements.
&lt;/div&gt;

&lt;div style="border:1px solid #6f8461; background:#f5f8f2; padding:0.9rem 1rem; margin-bottom:1.2rem;"&gt;
'''Also included (since [[Update 0.1.4|0.1.4]]).''' See [[MySQL connection recovery]], [[Weapon control]], [[Mouse capture]], [[UpdateCameraPose]], [[Map editor]], [[World objects]] and [[Player animation catalog|118 player animations]] for released tools and scripting APIs. Also see [[RmlUi images|WebP images]], [[os.time]] and [[getEventClient|remote event security]].
&lt;/div&gt;

&lt;div style="display:flex; flex-wrap:wrap; gap:1rem; margin-bottom:1rem;"&gt;
&lt;div style="flex:1 1 22rem; border:1px solid #c9c2b2; border-left:4px solid #b28a3d; padding:1rem 1.15rem; background:#faf9f5;"&gt;
&lt;div style="font-size:1.35rem; font-weight:bold; margin-bottom:0.45rem;"&gt;Start here&lt;/div&gt;
&lt;div style="color:#555; margin-bottom:0.6rem;"&gt;Find the right entry point for your first resource.&lt;/div&gt;
&lt;ul style="margin:0.35rem 0 0 1.25rem; line-height:1.75;"&gt;
&lt;li&gt;[[:Category:Lua API|Lua API overview]]&lt;/li&gt;
&lt;li&gt;[[:Category:Lua Functions|Complete function catalog]]&lt;/li&gt;
&lt;li&gt;[[Lua events|Complete event and callback catalog]]&lt;/li&gt;
&lt;li&gt;[[Scripting limits|Lua, resource and API limits]]&lt;/li&gt;
&lt;li&gt;[[Lua API catalogs|Validated skin, monster, equipment, and gameplay keys]]&lt;/li&gt;
&lt;li&gt;[[NPC and monster navigation collision|NPC and monster navigation collision]]&lt;/li&gt;
&lt;li&gt;[[Client audio|Client audio and synchronized 3D playback]]&lt;/li&gt;
&lt;li&gt;[[Game audio|Built-in game audio (upcoming 0.1.7)]]&lt;/li&gt;
&lt;li&gt;[[Game dialogue catalog|Complete dialogue catalog (upcoming 0.1.7)]]&lt;/li&gt;
&lt;li&gt;[[Scripted camera|Scripted camera and moving login backgrounds]]&lt;/li&gt;
&lt;li&gt;[[Map editor|Map editor: controls, save and reopen (0.1.4)]]&lt;/li&gt;
&lt;li&gt;[[Map scene deployment|Load exported objects for players (0.1.4)]]&lt;/li&gt;
&lt;li&gt;[[Player animation catalog|Player animations: work, sitting, sleep and gestures (expanded in 0.1.4)]]&lt;/li&gt;
&lt;li&gt;[[Player customization|Identity, skin color and tattoos]]&lt;/li&gt;
&lt;li&gt;[[Chapter screens|Custom chapter title cards]]&lt;/li&gt;
&lt;li&gt;[[Area notifications|Custom area notifications (since 0.1.6)]]&lt;/li&gt;
&lt;li&gt;[[Mounts|Rideable scavengers and ownership (since 0.1.6)]]&lt;/li&gt;
&lt;li&gt;[[Observer nameplates|Observer-specific labels and acquaintance presentation]]&lt;/li&gt;
&lt;li&gt;[[:Category:Resource Functions|Resource lifecycle functions]]&lt;/li&gt;
&lt;li&gt;[[:Category:Lua Examples|Lua examples]]&lt;/li&gt;
&lt;li&gt;[[Hosting a G1R:MP dedicated server|Hosting a dedicated server]]&lt;/li&gt;
&lt;li&gt;[[Known issues|Known issues and GPU crash workarounds]]&lt;/li&gt;
&lt;li&gt;[[:Category:Experimental Lua API|Experimental API status]]&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;

&lt;div style="flex:1 1 22rem; border:1px solid #c9c2b2; border-left:4px solid #6f8461; padding:1rem 1.15rem; background:#faf9f5;"&gt;
&lt;div style="font-size:1.35rem; font-weight:bold; margin-bottom:0.45rem;"&gt;Reference by execution side&lt;/div&gt;
&lt;div style="color:#555; margin-bottom:0.6rem;"&gt;Check where a function is available before using it.&lt;/div&gt;
&lt;ul style="margin:0.35rem 0 0 1.25rem; line-height:1.75;"&gt;
&lt;li&gt;[[:Category:Server Functions|Server-side functions]]&lt;/li&gt;
&lt;li&gt;[[:Category:Client Functions|Client-side functions]]&lt;/li&gt;
&lt;li&gt;[[:Category:Audio Functions|Client audio functions]]&lt;/li&gt;
&lt;li&gt;[[:Category:Shared Functions|Shared functions]]&lt;/li&gt;
&lt;li&gt;[[:Category:Server Events|Server-side events]]&lt;/li&gt;
&lt;li&gt;[[:Category:Client Events|Client-side events]]&lt;/li&gt;
&lt;li&gt;[[:Category:Event Functions|Event functions]]&lt;/li&gt;
&lt;li&gt;[[:Category:Network Functions|Network functions]]&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div style="display:flex; flex-wrap:wrap; gap:1rem; margin-bottom:1rem;"&gt;
&lt;div style="flex:1 1 22rem; border:1px solid #c9c2b2; padding:1rem 1.15rem; background:#fff;"&gt;
&lt;div style="font-size:1.25rem; font-weight:bold; border-bottom:1px solid #ded8ca; padding-bottom:0.45rem; margin-bottom:0.6rem;"&gt;Gameplay&lt;/div&gt;
&lt;div style="display:grid; grid-template-columns:repeat(auto-fit,minmax(10rem,1fr)); gap:0.4rem 1rem; line-height:1.65;"&gt;
&lt;div&gt;[[:Category:Player Functions|Players]]&lt;/div&gt;
&lt;div&gt;[[:Category:Spatial Functions|Position and spawn]]&lt;/div&gt;
&lt;div&gt;[[:Category:Progression Functions|Progression]]&lt;/div&gt;
&lt;div&gt;[[:Category:Inventory Functions|Inventory]]&lt;/div&gt;
&lt;div&gt;[[:Category:Equipment Functions|Equipment]]&lt;/div&gt;
&lt;div&gt;[[:Category:Magic Functions|Magic]]&lt;/div&gt;
&lt;div&gt;[[:Category:Life State Functions|Health and life state]]&lt;/div&gt;
&lt;div&gt;[[:Category:World Functions|World time and weather]]&lt;/div&gt;
&lt;div&gt;[[:Category:Monster Functions|Monsters]]&lt;/div&gt;
&lt;div&gt;[[:Category:Navigation Functions|AI navigation]]&lt;/div&gt;
&lt;div&gt;[[:Category:Interaction Functions|Interactions]]&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;div style="flex:1 1 22rem; border:1px solid #c9c2b2; padding:1rem 1.15rem; background:#fff;"&gt;
&lt;div style="font-size:1.25rem; font-weight:bold; border-bottom:1px solid #ded8ca; padding-bottom:0.45rem; margin-bottom:0.6rem;"&gt;Scripting systems&lt;/div&gt;
&lt;div style="display:grid; grid-template-columns:repeat(auto-fit,minmax(10rem,1fr)); gap:0.4rem 1rem; line-height:1.65;"&gt;
&lt;div&gt;[[:Category:GUI Functions|RmlUi and GUI]]&lt;/div&gt;
&lt;div&gt;[[:Category:Database Functions|Database]]&lt;/div&gt;
&lt;div&gt;[[MySQL connection recovery|Connection recovery (0.1.4)]]&lt;/div&gt;
&lt;div&gt;[[:Category:Timer Functions|Timers]]&lt;/div&gt;
&lt;div&gt;[[:Category:Command Functions|Commands]]&lt;/div&gt;
&lt;div&gt;[[:Category:Chat Functions|Chat]]&lt;/div&gt;
&lt;div&gt;[[:Category:Animation Functions|Animations]]&lt;/div&gt;
&lt;div&gt;[[Client audio|Client audio and OGG playback]]&lt;/div&gt;
&lt;div&gt;[[:Category:Camera Functions|Camera]]&lt;/div&gt;
&lt;div&gt;[[Lua events|Events and callbacks]]&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

== Your first server script ==

The following example welcomes a joining player and places them at an authoritative spawn point:

&lt;syntaxhighlight lang="lua" line&gt;
addEventHandler("onPlayerJoin", root, function(playerId)
    setPlayerName(playerId, "Newcomer")
    spawnPlayer(playerId, 12.0, 24.0, 2.0, 90)
    outputChatBox("Welcome to G1R:MP!", playerId, 225, 195, 110)
end)
&lt;/syntaxhighlight&gt;

See [[onPlayerJoin]], [[AddEventHandler|addEventHandler]], [[SetPlayerName|setPlayerName]], [[SpawnPlayer|spawnPlayer]], and [[OutputChatBox|outputChatBox]] for parameter details and additional examples.

&lt;div style="display:flex; flex-wrap:wrap; gap:1rem; margin-top:1.25rem;"&gt;
&lt;div style="flex:1 1 22rem; border-top:3px solid #b28a3d; background:#f5f2e9; padding:1rem 1.15rem;"&gt;
&lt;div style="font-size:1.2rem; font-weight:bold; margin-bottom:0.4rem;"&gt;Community&lt;/div&gt;
&lt;ul style="margin:0.35rem 0 0 1.25rem; line-height:1.7;"&gt;
&lt;li&gt;[https://g1r-mp.com/ G1R:MP website]&lt;/li&gt;
&lt;li&gt;[https://g1r-mp.com/forum/ Community forum]&lt;/li&gt;
&lt;li&gt;[https://g1r-mp.com/forum/member.php?action=profile&amp;uid=1 Project lead: QCherry]&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;

&lt;div style="flex:1 1 22rem; border-top:3px solid #6f8461; background:#f5f2e9; padding:1rem 1.15rem;"&gt;
&lt;div style="font-size:1.2rem; font-weight:bold; margin-bottom:0.4rem;"&gt;Documentation status&lt;/div&gt;
&lt;div style="line-height:1.6;"&gt;Browse functions and events by topic above. Each API page identifies its version and execution side. See [[Update 0.1.6]] for the current release and [[Update 0.1.5]] for the previous release. APIs marked [[:Category:Experimental Lua API|experimental]] may change. Historical release notices remain on their dedicated reference pages.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

[[Category:Lua API]]</text>
      <sha1>gkquyaoju9m2vag3xkegys09erz9n2l</sha1>
    </revision>
  </page>
</mediawiki>
