<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.gtaconnected.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=EricPlayZ</id>
	<title>GTA Connected - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.gtaconnected.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=EricPlayZ"/>
	<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/Special:Contributions/EricPlayZ"/>
	<updated>2026-04-29T10:12:55Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.15</generator>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=font.render&amp;diff=9943</id>
		<title>font.render</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=font.render&amp;diff=9943"/>
		<updated>2021-10-03T15:21:31Z</updated>

		<summary type="html">&lt;p&gt;EricPlayZ: fixed the script example&amp;#039;s spacing&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|type = method&lt;br /&gt;
|class = Font&lt;br /&gt;
|name = render&lt;br /&gt;
|parameters = string text, Vec2 position, float width, float align, float justify, float size, int colour, [ bool wordWrap = false, bool colourCodes = true, bool ignoreColourCodes = false, bool shadow = false ]&lt;br /&gt;
|parameter1 = string text The text to draw.&lt;br /&gt;
|parameter2 = Vec2 position The 2D position for the text.&lt;br /&gt;
|parameter3 = float width The maximum width of the text, in pixels.&lt;br /&gt;
|parameter4 = float align The horizontal alignment of the text, as a float.&lt;br /&gt;
|parameter5 = float justify The justify alignment of the text, as a float.&lt;br /&gt;
|parameter6 = float size The size of the text, as a float.&lt;br /&gt;
|parameter7 = int colour The colour of the text, as an integer; visit the [[Defines/IV#GTA_IV_-_Colour_Defines|colour defines]] page for info.&lt;br /&gt;
|parameter8 = bool wordWrap optional false Whether word wrap is enabled.&lt;br /&gt;
|parameter9 = bool colourCodes optional true Whether colour codes are resolved.&lt;br /&gt;
|parameter10 = bool ignoreColourCodes optional false Whether colour codes are not resolved.&lt;br /&gt;
|parameter11 = bool shadow optional false Whether to draw a shadow for the text.&lt;br /&gt;
|usage = draw text on the screen using a font&lt;br /&gt;
|return1 = void&lt;br /&gt;
|returnFail1 = void&lt;br /&gt;
|notes = You can use different colours using [[Format_Tags]]&lt;br /&gt;
|exampleJSCS = let gameMsgFont = null;&lt;br /&gt;
let gameMsgText = &amp;quot;Welcome to the server.&amp;quot;;&lt;br /&gt;
let gameMsgColour = COLOUR_YELLOW;&lt;br /&gt;
let gameMsgDuration = 7500;&lt;br /&gt;
let gameMsgStart = 0;&lt;br /&gt;
&lt;br /&gt;
bindEventHandler(&amp;quot;OnResourceReady&amp;quot;, thisResource, (event, resource) =&amp;gt; {&lt;br /&gt;
    let fontStream = openFile(&amp;quot;pricedown.ttf&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
    if (fontStream != null) {&lt;br /&gt;
        gameMsgFont = lucasFont.createFont(fontStream, 28.0);&lt;br /&gt;
        fontStream.close();&lt;br /&gt;
    }&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
bindEventHandler(&amp;quot;OnResourceStart&amp;quot;, thisResource, (event, resource) =&amp;gt; {&lt;br /&gt;
    gameMsgStart = sdl.ticks;&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;OnDrawnHUD&amp;quot;, (event) =&amp;gt; {&lt;br /&gt;
	if (gta.ivGamemode != 8)&lt;br /&gt;
		return;&lt;br /&gt;
&lt;br /&gt;
	if (sdl.ticks - gameMsgStart &amp;lt; gameMsgDuration ) {&lt;br /&gt;
		if (gameMsgFont != null) {&lt;br /&gt;
			gameMsgFont.render(gameMsgText, [0, gta.height - 45], gta.width, 0.5, 0.0, gameMsgFont.size, gameMsgColour, true, true, false, true);&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>EricPlayZ</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=font.render&amp;diff=9911</id>
		<title>font.render</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=font.render&amp;diff=9911"/>
		<updated>2021-09-24T16:28:16Z</updated>

		<summary type="html">&lt;p&gt;EricPlayZ: Fixed the params section; added an example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|type = method&lt;br /&gt;
|class = Font&lt;br /&gt;
|name = render&lt;br /&gt;
|parameters = string text, Vec2 position, float width, float align, float justify, float size, int colour, [ bool wordWrap = false, bool colourCodes = true, bool ignoreColourCodes = false, bool shadow = false ]&lt;br /&gt;
|parameter1 = string text The text to draw.&lt;br /&gt;
|parameter2 = Vec2 position The 2D position for the text.&lt;br /&gt;
|parameter3 = float width The maximum width of the text, in pixels.&lt;br /&gt;
|parameter4 = float align The horizontal alignment of the text, as a float.&lt;br /&gt;
|parameter5 = float justify The justify alignment of the text, as a float.&lt;br /&gt;
|parameter6 = float size The size of the text, as a float.&lt;br /&gt;
|parameter7 = int colour The colour of the text, as an integer; visit the [[Defines/IV#GTA_IV_-_Colour_Defines|colour defines]] page for info.&lt;br /&gt;
|parameter8 = bool wordWrap optional false Whether word wrap is enabled.&lt;br /&gt;
|parameter9 = bool colourCodes optional true Whether colour codes are resolved.&lt;br /&gt;
|parameter10 = bool ignoreColourCodes optional false Whether colour codes are not resolved.&lt;br /&gt;
|parameter11 = bool shadow optional false Whether to draw a shadow for the text.&lt;br /&gt;
|usage = draw text on the screen using a font&lt;br /&gt;
|return1 = void&lt;br /&gt;
|returnFail1 = void&lt;br /&gt;
|notes = You can use different colours using [[Format_Tags]]&lt;br /&gt;
|exampleJSCS = let gameMsgFont = null;&lt;br /&gt;
let gameMsgText = &amp;quot;Welcome to the server.&amp;quot;;&lt;br /&gt;
let gameMsgColour = COLOUR_YELLOW;&lt;br /&gt;
let gameMsgDuration = 7500;&lt;br /&gt;
let gameMsgStart = 0;&lt;br /&gt;
&lt;br /&gt;
bindEventHandler(&amp;quot;OnResourceReady&amp;quot;, thisResource, (event, resource) =&amp;gt; {&lt;br /&gt;
    let fontStream = openFile(&amp;quot;pricedown.ttf&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
    if (fontStream != null) {&lt;br /&gt;
        gameMsgFont = lucasFont.createFont(fontStream, 28.0);&lt;br /&gt;
        fontStream.close();&lt;br /&gt;
    }&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
bindEventHandler(&amp;quot;OnResourceStart&amp;quot;, thisResource, (event, resource) =&amp;gt; {&lt;br /&gt;
    gameMsgStart = sdl.ticks;&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;OnDrawnHUD&amp;quot;, (event) =&amp;gt; {&lt;br /&gt;
	if (gta.ivGamemode != 8)&lt;br /&gt;
		return;&lt;br /&gt;
&lt;br /&gt;
	if(sdl.ticks - gameMsgStart &amp;lt; gameMsgDuration ) {&lt;br /&gt;
		if(gameMsgFont != null) {&lt;br /&gt;
			gameMsgFont.render(gameMsgText, [0, gta.height-45], gta.width, 0.5, 0.0, gameMsgFont.size, gameMsgColour, true, true, false, true);&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>EricPlayZ</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=Client/Natives/IV/getPlayerId&amp;diff=9906</id>
		<title>Client/Natives/IV/getPlayerId</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=Client/Natives/IV/getPlayerId&amp;diff=9906"/>
		<updated>2021-09-18T15:02:38Z</updated>

		<summary type="html">&lt;p&gt;EricPlayZ: page created&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:natives.getPlayerId}}&lt;br /&gt;
{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.getPlayerId&lt;br /&gt;
|usage = get the Player&#039;s id&lt;br /&gt;
|parameters = void&lt;br /&gt;
|return1 = int An integer representing the Player&#039;s id&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>EricPlayZ</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=Client/Natives/IV/isNetworkPlayerActive&amp;diff=9905</id>
		<title>Client/Natives/IV/isNetworkPlayerActive</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=Client/Natives/IV/isNetworkPlayerActive&amp;diff=9905"/>
		<updated>2021-09-18T10:15:30Z</updated>

		<summary type="html">&lt;p&gt;EricPlayZ: Created page with &amp;quot;{{DISPLAYTITLE:natives.isNetworkPlayerActive}} {{ScriptItem |endpoint = client |games = iv |type = function |name = natives.isNetworkPlayerActive |usage = check if the Player...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:natives.isNetworkPlayerActive}}&lt;br /&gt;
{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.isNetworkPlayerActive&lt;br /&gt;
|usage = check if the Player is connected to a server&lt;br /&gt;
|parameters = int playerId&lt;br /&gt;
|parameter1 = int playerId The id of the Player&lt;br /&gt;
|return1 = bool A boolean representing whether or not the Player is connected to a server&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>EricPlayZ</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=Client/Natives/IV/isPlayerDead&amp;diff=9904</id>
		<title>Client/Natives/IV/isPlayerDead</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=Client/Natives/IV/isPlayerDead&amp;diff=9904"/>
		<updated>2021-09-18T09:54:05Z</updated>

		<summary type="html">&lt;p&gt;EricPlayZ: page created&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:natives.isPlayerDead}}&lt;br /&gt;
{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.isPlayerDead&lt;br /&gt;
|usage = check if the Player is dead&lt;br /&gt;
|parameters = int playerId&lt;br /&gt;
|parameter1 = int playerId The id of the Player&lt;br /&gt;
|return1 = bool A boolean representing whether or not the Player is dead&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>EricPlayZ</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=Client/Natives/IV/isPlayerControlOn&amp;diff=9903</id>
		<title>Client/Natives/IV/isPlayerControlOn</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=Client/Natives/IV/isPlayerControlOn&amp;diff=9903"/>
		<updated>2021-09-18T09:51:00Z</updated>

		<summary type="html">&lt;p&gt;EricPlayZ: Created page with &amp;quot;{{DISPLAYTITLE:natives.isPlayerControlOn}} {{ScriptItem |endpoint = client |games = iv |type = function |name = natives.isPlayerControlOn |usage = check if the client can cont...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:natives.isPlayerControlOn}}&lt;br /&gt;
{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.isPlayerControlOn&lt;br /&gt;
|usage = check if the client can control their Player&lt;br /&gt;
|parameters = int playerId&lt;br /&gt;
|parameter1 = int playerId The id of the Player&lt;br /&gt;
|return1 = bool A boolean representing whether or not the client can control their Player&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>EricPlayZ</name></author>
	</entry>
</feed>