<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.rage.mp/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Katalam</id>
	<title>RAGE Multiplayer Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.rage.mp/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Katalam"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/wiki/Special:Contributions/Katalam"/>
	<updated>2026-08-18T06:12:48Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Vehicle::setSirenSound&amp;diff=19486</id>
		<title>Vehicle::setSirenSound</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Vehicle::setSirenSound&amp;diff=19486"/>
		<updated>2020-03-16T10:58:23Z</updated>

		<summary type="html">&lt;p&gt;Katalam: Created page with &amp;quot;Activate siren sound on vehicle (Only works if the vehicle has a siren).  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;vehicle.setSirenSound(toggle);&amp;lt;/syntaxhighlight&amp;gt; === Re...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Activate siren sound on vehicle (Only works if the vehicle has a siren).&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;vehicle.setSirenSound(toggle);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;toggle:&#039;&#039;&#039; Boolean&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;Undefined&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.players.local.vehicle.setSirenSound(true)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Make sure you use true for silence.&lt;/div&gt;</summary>
		<author><name>Katalam</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=PlayerJoin&amp;diff=19470</id>
		<title>PlayerJoin</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=PlayerJoin&amp;diff=19470"/>
		<updated>2020-02-29T16:30:38Z</updated>

		<summary type="html">&lt;p&gt;Katalam: Fixed server side chat error and changed example to console.log&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This event is triggered when a player &#039;&#039;&#039;joins&#039;&#039;&#039; the server.&lt;br /&gt;
&lt;br /&gt;
{{ServersideJsEvent}}&lt;br /&gt;
&lt;br /&gt;
{{CSharpContainer|1=&lt;br /&gt;
See [https://wiki.gtanet.work/index.php?title=OnPlayerConnected on GTA Network Wiki].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Parameters}}&lt;br /&gt;
&lt;br /&gt;
{{JSContainer|&lt;br /&gt;
{{Parameters}}&lt;br /&gt;
* &#039;&#039;&#039;player&#039;&#039;&#039;: {{RageType|Player}} - The player who joined.&lt;br /&gt;
&lt;br /&gt;
{{Example}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.events.add(&#039;playerJoin&#039;, (player) =&amp;gt; {&lt;br /&gt;
    console.log(`[SERVER]: ${player.name} has joined the server!`);&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{ClientsideCsJsEvent}}&lt;br /&gt;
This event is &#039;&#039;&#039;not&#039;&#039;&#039; called for the &#039;&#039;&#039;local player&#039;&#039;&#039; who joined the server.&lt;br /&gt;
&lt;br /&gt;
{{CSharpContainer|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
public delegate void OnPlayerJoinDelegate(Player player);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Parameters}}&lt;br /&gt;
* &#039;&#039;&#039;player&#039;&#039;&#039;: The player joining the server, expects &#039;&#039;&#039;RAGE.Elements.Player&#039;&#039;&#039; type.&lt;br /&gt;
&lt;br /&gt;
{{Example}}&lt;br /&gt;
The example below shows up a message to the client when another player joins the server.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
Events.OnPlayerJoin += OnPlayerJoin;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
public void OnPlayerJoin(RAGE.Elements.Player player)&lt;br /&gt;
{&lt;br /&gt;
    RAGE.Chat.Output($&amp;quot;Player {player.Name} has joined&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{JSContainer|&lt;br /&gt;
{{Parameters}}&lt;br /&gt;
* &#039;&#039;&#039;player&#039;&#039;&#039;: {{RageType|Player}} - Another player who joined the server.&lt;br /&gt;
&lt;br /&gt;
{{Example}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.events.add(&amp;quot;playerJoin&amp;quot;, (player) =&amp;gt; {&lt;br /&gt;
    mp.gui.chat.push(`${player.name} has joined the server!`);&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Player_events}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Player]]&lt;br /&gt;
[[Category:Server-side Event]]&lt;br /&gt;
[[Category:Client-side Event]]&lt;/div&gt;</summary>
		<author><name>Katalam</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Vehicle::locked&amp;diff=19323</id>
		<title>Vehicle::locked</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Vehicle::locked&amp;diff=19323"/>
		<updated>2020-01-27T13:26:38Z</updated>

		<summary type="html">&lt;p&gt;Katalam: Doubled negation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This property used for lock/unlock vehicle. Players can&#039;t seat to locked vehicles, bikes too.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
Boolean vehicle.lock;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
That&#039;s example will lock your vehicle, when you use command.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.events.addCommand(`doors`, &lt;br /&gt;
	(player) =&amp;gt; {&lt;br /&gt;
		let vehicle = player.vehicle;&lt;br /&gt;
		if (vehicle) {&lt;br /&gt;
			let newState = !vehicle.locked;&lt;br /&gt;
			vehicle.locked = newState;&lt;br /&gt;
			player.outputChatBox(`Your vehicle doors now &amp;lt;b&amp;gt;${newState ? `closed` : `opened`}&amp;lt;/b&amp;gt;`);&lt;br /&gt;
		};&lt;br /&gt;
	}&lt;br /&gt;
);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Vehicle_block}}&lt;/div&gt;</summary>
		<author><name>Katalam</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Audio::playSoundFromEntity&amp;diff=19322</id>
		<title>Audio::playSoundFromEntity</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Audio::playSoundFromEntity&amp;diff=19322"/>
		<updated>2020-01-27T12:33:03Z</updated>

		<summary type="html">&lt;p&gt;Katalam: Fixed bracket error&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All found occurrences in b617d, sorted alphabetically and identical lines removed: pastebin.com/f2A7vTj0 &amp;lt;br&amp;gt;No changes made in b678d.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;gtaforums.com/topic/795622-audio-for-mods&amp;lt;br&amp;gt;&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.game.audio.playSoundFromEntity(soundId, audioName, entity, audioRef, p4, p5);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;soundId:&#039;&#039;&#039; int&lt;br /&gt;
*&#039;&#039;&#039;audioName:&#039;&#039;&#039; String&lt;br /&gt;
*&#039;&#039;&#039;entity:&#039;&#039;&#039; Entity handle or object&lt;br /&gt;
*&#039;&#039;&#039;audioRef:&#039;&#039;&#039; String&lt;br /&gt;
*&#039;&#039;&#039;p4:&#039;&#039;&#039; Boolean&lt;br /&gt;
*&#039;&#039;&#039;p5:&#039;&#039;&#039; unknown (to be checked)&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;Undefined&#039;&#039;&#039;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
function playerEnterVehicleHandler(vehicle) {&lt;br /&gt;
    mp.game.audio.playSoundFromEntity(1, &amp;quot;CONFIRM_BEEP&amp;quot;, vehicle.handle, &amp;quot;HUD_MINI_GAME_SOUNDSET&amp;quot;, true, 0);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
mp.events.add(&amp;quot;playerEnterVehicle&amp;quot;, playerEnterVehicleHandler);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Audio_s_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;/div&gt;</summary>
		<author><name>Katalam</name></author>
	</entry>
</feed>