<?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=ChrisGame20</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=ChrisGame20"/>
	<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/Special:Contributions/ChrisGame20"/>
	<updated>2026-05-12T07:05:16Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.15</generator>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.setStateOfClosestDoorOfType&amp;diff=11353</id>
		<title>natives.setStateOfClosestDoorOfType</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.setStateOfClosestDoorOfType&amp;diff=11353"/>
		<updated>2026-01-10T04:37:12Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setStateOfClosestDoorOfType |parameters = int modelHash, Vec3 position, int locked, float state |parameter1 = int modelHash The door model hash (use natives.getHashKey) |parameter2 = Vec3 position The position of the door |parameter3 = int locked 0 = door can move, 1 = door locked (cannot move) |parameter4 = float state 0.0 = door visually closed, 1.0 = door visually open |usage = Control the st...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.setStateOfClosestDoorOfType&lt;br /&gt;
|parameters = int modelHash, Vec3 position, int locked, float state&lt;br /&gt;
|parameter1 = int modelHash The door model hash (use natives.getHashKey)&lt;br /&gt;
|parameter2 = Vec3 position The position of the door&lt;br /&gt;
|parameter3 = int locked 0 = door can move, 1 = door locked (cannot move)&lt;br /&gt;
|parameter4 = float state 0.0 = door visually closed, 1.0 = door visually open&lt;br /&gt;
|usage = Control the state and lock of the closest door of a given type&lt;br /&gt;
|notes = &lt;br /&gt;
- Must use [[natives.getHashKey]] to obtain the door model hash.&lt;br /&gt;
- `state` controls how the door looks (closed = 0.0, open = 1.0).&lt;br /&gt;
- `locked` controls whether the door can move (0 free, 1 locked).&lt;br /&gt;
- Examples:&lt;br /&gt;
  - `state=0.0, locked=0` → door closed, can move&lt;br /&gt;
  - `state=0.0, locked=1` → door closed, locked&lt;br /&gt;
  - `state=1.0, locked=0` → door open, can move&lt;br /&gt;
  - `state=1.0, locked=1` → door open, locked&lt;br /&gt;
|return1 = void&lt;br /&gt;
|exampleJS = &lt;br /&gt;
    var hash = natives.getHashKey(&amp;quot;cj_int_door_10&amp;quot;);&lt;br /&gt;
    var pos = new Vec3(892.9844, -501.7633, 19.4067);&lt;br /&gt;
    natives.setStateOfClosestDoorOfType(hash, pos, 1, 0.0);&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.changeCarColour&amp;diff=11352</id>
		<title>natives.changeCarColour</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.changeCarColour&amp;diff=11352"/>
		<updated>2026-01-10T04:25:04Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.changeCarColour&lt;br /&gt;
|parameters = Vehicle vehicle, int colour1, int colour2&lt;br /&gt;
|parameter1 = Vehicle vehicle The vehicle&lt;br /&gt;
|parameter2 = int colour1 The primary colour index&lt;br /&gt;
|parameter3 = int colour2 The secondary colour index&lt;br /&gt;
|usage = Change the primary and secondary colours of a vehicle&lt;br /&gt;
|return1 = void&lt;br /&gt;
|exampleJS = addCommandHandler(&amp;quot;paintcar&amp;quot;, function(command, params, client) {&lt;br /&gt;
    natives.changeCarColour(localPlayer.vehicle, 5, 10);&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.drawFrontendHelperText&amp;diff=11346</id>
		<title>natives.drawFrontendHelperText</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.drawFrontendHelperText&amp;diff=11346"/>
		<updated>2025-12-21T12:36:19Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.drawFrontendHelperText |parameters = string label, string control, bool show |parameter1 = string label Text label to display (can be a literal or a localized key) |parameter2 = string control Control name to show (e.g. &amp;quot;INPUT_F_ENTER&amp;quot;) |parameter3 = bool show Whether to show (true) or hide (false) the helper text |usage = Displays a helper text prompt in the frontend HUD with a control hint |no...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.drawFrontendHelperText&lt;br /&gt;
|parameters = string label, string control, bool show&lt;br /&gt;
|parameter1 = string label Text label to display (can be a literal or a localized key)&lt;br /&gt;
|parameter2 = string control Control name to show (e.g. &amp;quot;INPUT_F_ENTER&amp;quot;)&lt;br /&gt;
|parameter3 = bool show Whether to show (true) or hide (false) the helper text&lt;br /&gt;
|usage = Displays a helper text prompt in the frontend HUD with a control hint&lt;br /&gt;
|notes = &lt;br /&gt;
- The helper text appears in a fixed position on the HUD (bottom area)&lt;br /&gt;
- Useful for tutorials, prompts, or guiding players to press a specific key&lt;br /&gt;
|return1 = void&lt;br /&gt;
|exampleJS = &lt;br /&gt;
addCommandHandler(&amp;quot;showhelper&amp;quot;, function(command, params, client) {&lt;br /&gt;
    natives.drawFrontendHelperText(&amp;quot;Press to continue&amp;quot;, &amp;quot;INPUT_F_ENTER&amp;quot;, true);&lt;br /&gt;
    setTimeout(() =&amp;gt; {&lt;br /&gt;
        natives.drawFrontendHelperText(&amp;quot;Press to continue&amp;quot;, &amp;quot;INPUT_F_ENTER&amp;quot;, false);&lt;br /&gt;
    }, 5000);&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.drawColouredCylinder&amp;diff=11345</id>
		<title>natives.drawColouredCylinder</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.drawColouredCylinder&amp;diff=11345"/>
		<updated>2025-12-21T12:31:51Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.drawColouredCylinder |parameters = Vec3 position, float radius, float height, int r, int g, int b, int a |parameter1 = Vec3 position Coordinates of the cylinder base (x, y, z) |parameter2 = float radius Radius of the cylinder |parameter3 = float height Height of the cylinder |parameter4 = int r Red component (0–255) |parameter5 = int g Green component (0–255) |parameter6 = int b Blue compone...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.drawColouredCylinder&lt;br /&gt;
|parameters = Vec3 position, float radius, float height, int r, int g, int b, int a&lt;br /&gt;
|parameter1 = Vec3 position Coordinates of the cylinder base (x, y, z)&lt;br /&gt;
|parameter2 = float radius Radius of the cylinder&lt;br /&gt;
|parameter3 = float height Height of the cylinder&lt;br /&gt;
|parameter4 = int r Red component (0–255)&lt;br /&gt;
|parameter5 = int g Green component (0–255)&lt;br /&gt;
|parameter6 = int b Blue component (0–255)&lt;br /&gt;
|parameter7 = int a Alpha component (0–255, transparency)&lt;br /&gt;
|usage = Draws a coloured cylinder at the given coordinates for debugging or visual markers&lt;br /&gt;
|notes = &lt;br /&gt;
- Must be called inside a rendering event such as [[OnDrawnHUD]] so the cylinder is drawn each frame&lt;br /&gt;
- Useful for visualizing zones, areas of effect, or collision boundaries&lt;br /&gt;
- Alpha controls transparency (0 = invisible, 255 = fully opaque)&lt;br /&gt;
|return1 = void&lt;br /&gt;
|exampleJS = &lt;br /&gt;
addEventHandler(&amp;quot;OnDrawnHUD&amp;quot;, () =&amp;gt; {&lt;br /&gt;
 natives.drawColouredCylinder(new Vec3(910.94, -506.06, 15.04), 2.0, 5.0, 255, 0, 0, 128);&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.drawCheckpointWithAlpha&amp;diff=11344</id>
		<title>natives.drawCheckpointWithAlpha</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.drawCheckpointWithAlpha&amp;diff=11344"/>
		<updated>2025-12-21T12:29:29Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.drawCheckpointWithAlpha |parameters = Vec3 position, float radius, int r, int g, int b, int a |parameter1 = Vec3 position Coordinates of the checkpoint (x, y, z) |parameter2 = float radius Radius of the checkpoint circle |parameter3 = int r Red component (0–255) |parameter4 = int g Green component (0–255) |parameter5 = int b Blue component (0–255) |parameter6 = int a Alpha component (0–2...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.drawCheckpointWithAlpha&lt;br /&gt;
|parameters = Vec3 position, float radius, int r, int g, int b, int a&lt;br /&gt;
|parameter1 = Vec3 position Coordinates of the checkpoint (x, y, z)&lt;br /&gt;
|parameter2 = float radius Radius of the checkpoint circle&lt;br /&gt;
|parameter3 = int r Red component (0–255)&lt;br /&gt;
|parameter4 = int g Green component (0–255)&lt;br /&gt;
|parameter5 = int b Blue component (0–255)&lt;br /&gt;
|parameter6 = int a Alpha component (0–255, transparency)&lt;br /&gt;
|usage = Draws a visual checkpoint marker at the given coordinates with adjustable transparency&lt;br /&gt;
|notes = &lt;br /&gt;
- Must be called inside a rendering event such as [[OnDrawnHUD]] so the marker is drawn each frame&lt;br /&gt;
- Color, radius and alpha allow customization of the checkpoint’s appearance&lt;br /&gt;
- Alpha controls transparency (0 = invisible, 255 = fully opaque)&lt;br /&gt;
|return1 = void&lt;br /&gt;
|exampleJS = &lt;br /&gt;
addEventHandler(&amp;quot;OnDrawnHUD&amp;quot;, () =&amp;gt; {&lt;br /&gt;
 natives.drawCheckpointWithAlpha(new Vec3(910.94, -506.06, 15.04), 3.0, 0, 255, 0, 128);&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.drawCheckpoint&amp;diff=11343</id>
		<title>natives.drawCheckpoint</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.drawCheckpoint&amp;diff=11343"/>
		<updated>2025-12-21T12:27:29Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.drawCheckpoint&lt;br /&gt;
|parameters = Vec3 position, float radius, int r, int g, int b, int a&lt;br /&gt;
|parameter1 = Vec3 position Coordinates of the checkpoint (x, y, z)&lt;br /&gt;
|parameter2 = float radius Radius of the checkpoint circle&lt;br /&gt;
|parameter3 = int r Red component (0–255)&lt;br /&gt;
|parameter4 = int g Green component (0–255)&lt;br /&gt;
|parameter5 = int b Blue component (0–255)&lt;br /&gt;
|parameter6 = int a Alpha component (0–255)&lt;br /&gt;
|usage = Draws a visual checkpoint marker at the given coordinates&lt;br /&gt;
|notes = &lt;br /&gt;
- Must be called inside a rendering event such as [[OnDrawnHUD]] so the marker is drawn each frame&lt;br /&gt;
- Color and radius allow customization of the checkpoint’s appearance&lt;br /&gt;
|return1 = void&lt;br /&gt;
|exampleJS = &lt;br /&gt;
addEventHandler(&amp;quot;OnDrawnHUD&amp;quot;, () =&amp;gt; {&lt;br /&gt;
 natives.drawCheckpoint(new Vec3(910.94, -506.06, 15.04), 3.0, 0, 255, 0);&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.setVehInteriorlight&amp;diff=11342</id>
		<title>natives.setVehInteriorlight</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.setVehInteriorlight&amp;diff=11342"/>
		<updated>2025-12-18T20:38:34Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setVehInteriorlight |parameters = object vehicle, bool toggle |parameter1 = object vehicle The vehicle |parameter2 = bool toggle True to enable the interior light, false to disable |usage = turn the interior light on/off for a vehicle |notes = This controls the interior light of the specified vehicle. |return1 = void |exampleJS = addCommandHandler(&amp;quot;interiorlight&amp;quot;, function(command, params, clien...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.setVehInteriorlight&lt;br /&gt;
|parameters = object vehicle, bool toggle&lt;br /&gt;
|parameter1 = object vehicle The vehicle&lt;br /&gt;
|parameter2 = bool toggle True to enable the interior light, false to disable&lt;br /&gt;
|usage = turn the interior light on/off for a vehicle&lt;br /&gt;
|notes = This controls the interior light of the specified vehicle.&lt;br /&gt;
|return1 = void&lt;br /&gt;
|exampleJS = addCommandHandler(&amp;quot;interiorlight&amp;quot;, function(command, params, client) {&lt;br /&gt;
    natives.setVehInteriorlight(localPlayer.vehicle, true);&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.taskPlayAnimNonInterruptable&amp;diff=11341</id>
		<title>natives.taskPlayAnimNonInterruptable</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.taskPlayAnimNonInterruptable&amp;diff=11341"/>
		<updated>2025-12-17T04:05:57Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.taskPlayAnimNonInterruptable |parameters = object ped, string animName, string animGroup, float speed, int flag1, int flag2, int flag3, int flag4, int unknown |parameter1 = object ped The handle of the ped |parameter2 = string animName The animation&amp;#039;s name (e.g. &amp;quot;crim_searched&amp;quot;) |parameter3 = string animGroup The animation set/group name (e.g. &amp;quot;cop&amp;quot;) |parameter4 = float speed Playback speed mult...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.taskPlayAnimNonInterruptable&lt;br /&gt;
|parameters = object ped, string animName, string animGroup, float speed, int flag1, int flag2, int flag3, int flag4, int unknown&lt;br /&gt;
|parameter1 = object ped The handle of the ped&lt;br /&gt;
|parameter2 = string animName The animation&#039;s name (e.g. &amp;quot;crim_searched&amp;quot;)&lt;br /&gt;
|parameter3 = string animGroup The animation set/group name (e.g. &amp;quot;cop&amp;quot;)&lt;br /&gt;
|parameter4 = float speed Playback speed multiplier&lt;br /&gt;
|parameter5 = int flag1 First animation flag&lt;br /&gt;
|parameter6 = int flag2 Second animation flag&lt;br /&gt;
|parameter7 = int flag3 Third animation flag&lt;br /&gt;
|parameter8 = int flag4 Fourth animation flag&lt;br /&gt;
|parameter9 = int unknown Always -1&lt;br /&gt;
|usage = Play a non-interruptable animation on a ped&lt;br /&gt;
|notes =&lt;br /&gt;
* **Flag 1** – Loops the animation infinitely.&lt;br /&gt;
* **Flag 2** – Loops the animation infinitely, disables player movement but not player control.&lt;br /&gt;
* **Flag 3** – If set to false (0), the player is returned to their old coordinate once the animation is complete (for animations that move the player such as walking). True (1) will not return them to their old position.&lt;br /&gt;
* **Flag 4** – Freezes the last frame of the animation.&lt;br /&gt;
|return1 = void&lt;br /&gt;
|exampleJS = addCommandHandler(&amp;quot;cuffanim&amp;quot;, function(command, params, client) {&lt;br /&gt;
    natives.requestAnims(&amp;quot;cop&amp;quot;);&lt;br /&gt;
    natives.taskPlayAnimNonInterruptable(localPlayer, &amp;quot;crim_searched&amp;quot;, &amp;quot;cop&amp;quot;, 8.0, 0, 0, 0, 1, -1);&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.drawCheckpoint&amp;diff=11340</id>
		<title>natives.drawCheckpoint</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.drawCheckpoint&amp;diff=11340"/>
		<updated>2025-12-14T22:11:14Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.drawCheckpoint&lt;br /&gt;
|parameters = Vec3 position, float radius, int r, int g, int b, int a&lt;br /&gt;
|parameter1 = Vec3 position Coordinates of the checkpoint (x, y, z)&lt;br /&gt;
|parameter2 = float radius Radius of the checkpoint circle&lt;br /&gt;
|parameter3 = int r Red component (0–255)&lt;br /&gt;
|parameter4 = int g Green component (0–255)&lt;br /&gt;
|parameter5 = int b Blue component (0–255)&lt;br /&gt;
|parameter6 = int a Alpha component (0–255)&lt;br /&gt;
|usage = Draws a visual checkpoint marker at the given coordinates&lt;br /&gt;
|notes = &lt;br /&gt;
- Must be called inside a rendering event such as [[OnDrawnHUD]] so the marker is drawn each frame&lt;br /&gt;
- Color and radius allow customization of the checkpoint’s appearance&lt;br /&gt;
|return1 = void&lt;br /&gt;
|exampleJS = &lt;br /&gt;
const pos = new Vec3(100.0, 200.0, 20.0);&lt;br /&gt;
natives.drawCheckpoint(pos, 3.0, 255, 0, 0, 200);&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.drawCheckpoint&amp;diff=11339</id>
		<title>natives.drawCheckpoint</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.drawCheckpoint&amp;diff=11339"/>
		<updated>2025-12-14T22:08:20Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.drawCheckpoint |parameters = float x, float y, float z, float radius, int r, int g, int b, int a |parameter1 = float x X coordinate of the checkpoint |parameter2 = float y Y coordinate of the checkpoint |parameter3 = float z Z coordinate of the checkpoint |parameter4 = float radius Radius of the checkpoint circle |parameter5 = int r Red component (0–255) |parameter6 = int g Green component (0...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.drawCheckpoint&lt;br /&gt;
|parameters = float x, float y, float z, float radius, int r, int g, int b, int a&lt;br /&gt;
|parameter1 = float x X coordinate of the checkpoint&lt;br /&gt;
|parameter2 = float y Y coordinate of the checkpoint&lt;br /&gt;
|parameter3 = float z Z coordinate of the checkpoint&lt;br /&gt;
|parameter4 = float radius Radius of the checkpoint circle&lt;br /&gt;
|parameter5 = int r Red component (0–255)&lt;br /&gt;
|parameter6 = int g Green component (0–255)&lt;br /&gt;
|parameter7 = int b Blue component (0–255)&lt;br /&gt;
|parameter8 = int a Alpha component (0–255)&lt;br /&gt;
|usage = Draw a visual checkpoint marker at given coordinates&lt;br /&gt;
|notes = &lt;br /&gt;
- Must be called inside a rendering event such as [[OnDrawnHUD]] so the marker is drawn each frame&lt;br /&gt;
- Color and radius allow customization of the checkpoint’s appearance&lt;br /&gt;
|return1 = void&lt;br /&gt;
|exampleJS = natives.drawCheckpoint(100.0, 200.0, 20.0, 3.0, 255, 0, 0, 200);&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.createCheckpoint&amp;diff=11338</id>
		<title>natives.createCheckpoint</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.createCheckpoint&amp;diff=11338"/>
		<updated>2025-12-14T22:05:40Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.createCheckpoint&amp;diff=11337</id>
		<title>natives.createCheckpoint</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.createCheckpoint&amp;diff=11337"/>
		<updated>2025-12-07T22:41:28Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.drawCheckpoint |parameters = float x, float y, float z, float radius, int r, int g, int b, int a |parameter1 = float x X coordinate of the checkpoint |parameter2 = float y Y coordinate of the checkpoint |parameter3 = float z Z coordinate of the checkpoint |parameter4 = float radius Radius of the checkpoint circle |parameter5 = int r Red component (0–255) |parameter6 = int g Green component (0...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.drawCheckpoint&lt;br /&gt;
|parameters = float x, float y, float z, float radius, int r, int g, int b, int a&lt;br /&gt;
|parameter1 = float x X coordinate of the checkpoint&lt;br /&gt;
|parameter2 = float y Y coordinate of the checkpoint&lt;br /&gt;
|parameter3 = float z Z coordinate of the checkpoint&lt;br /&gt;
|parameter4 = float radius Radius of the checkpoint circle&lt;br /&gt;
|parameter5 = int r Red component (0–255)&lt;br /&gt;
|parameter6 = int g Green component (0–255)&lt;br /&gt;
|parameter7 = int b Blue component (0–255)&lt;br /&gt;
|parameter8 = int a Alpha component (0–255)&lt;br /&gt;
|usage = Draw a visual checkpoint marker at given coordinates&lt;br /&gt;
|notes = &lt;br /&gt;
- Must be called inside a rendering event such as [[OnDrawnHUD]] so the marker is drawn each frame&lt;br /&gt;
- Color and radius allow customization of the checkpoint’s appearance&lt;br /&gt;
|return1 = void&lt;br /&gt;
|exampleJS = natives.drawCheckpoint(100.0, 200.0, 20.0, 3.0, 255, 0, 0, 200);&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.setDisplayPlayerNameAndIcon&amp;diff=11336</id>
		<title>natives.setDisplayPlayerNameAndIcon</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.setDisplayPlayerNameAndIcon&amp;diff=11336"/>
		<updated>2025-12-07T22:37:56Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setDisplayPlayerNameAndIcon |parameters = int playerId, bool enable |parameter1 = int playerId The player index to affect |parameter2 = bool enable True to show the name and icon, false to hide |usage = Display or hide the player’s name and icon above their ped |notes =  - Requires natives.displayPlayerNames to be enabled globally - Often combined with natives.givePedFakeNetworkName to...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.setDisplayPlayerNameAndIcon&lt;br /&gt;
|parameters = int playerId, bool enable&lt;br /&gt;
|parameter1 = int playerId The player index to affect&lt;br /&gt;
|parameter2 = bool enable True to show the name and icon, false to hide&lt;br /&gt;
|usage = Display or hide the player’s name and icon above their ped&lt;br /&gt;
|notes = &lt;br /&gt;
- Requires [[natives.displayPlayerNames]] to be enabled globally&lt;br /&gt;
- Often combined with [[natives.givePedFakeNetworkName]] to show custom names&lt;br /&gt;
- playerId must be a valid client index&lt;br /&gt;
|return1 = void&lt;br /&gt;
|exampleJS = natives.setDisplayPlayerNameAndIcon(localPlayer.id, true);&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.displayPlayerNames&amp;diff=11335</id>
		<title>natives.displayPlayerNames</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.displayPlayerNames&amp;diff=11335"/>
		<updated>2025-12-07T22:36:52Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.displayPlayerNames |parameters = bool enable |parameter1 = bool enable True to show player names, false to hide them |usage = Toggle global display of player names |notes =  - Must be enabled for natives.setDisplayPlayerNameAndIcon and natives.givePedFakeNetworkName to be visible - Acts as a global switch affecting all players |return1 = void |exampleJS = natives.displayPlayerNames(true)...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.displayPlayerNames&lt;br /&gt;
|parameters = bool enable&lt;br /&gt;
|parameter1 = bool enable True to show player names, false to hide them&lt;br /&gt;
|usage = Toggle global display of player names&lt;br /&gt;
|notes = &lt;br /&gt;
- Must be enabled for [[natives.setDisplayPlayerNameAndIcon]] and [[natives.givePedFakeNetworkName]] to be visible&lt;br /&gt;
- Acts as a global switch affecting all players&lt;br /&gt;
|return1 = void&lt;br /&gt;
|exampleJS = natives.displayPlayerNames(true);&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.givePedFakeNetworkName&amp;diff=11334</id>
		<title>natives.givePedFakeNetworkName</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.givePedFakeNetworkName&amp;diff=11334"/>
		<updated>2025-12-07T22:35:18Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.givePedFakeNetworkName |parameters = Ped ped, string name, int r, int g, int b, int a |parameter1 = Ped ped The ped to assign the fake name to |parameter2 = string name The fake network name to display |parameter3 = int r Red component (0–255) |parameter4 = int g Green component (0–255) |parameter5 = int b Blue component (0–255) |parameter6 = int a Alpha component (0–255) |usage = Assign...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.givePedFakeNetworkName&lt;br /&gt;
|parameters = Ped ped, string name, int r, int g, int b, int a&lt;br /&gt;
|parameter1 = Ped ped The ped to assign the fake name to&lt;br /&gt;
|parameter2 = string name The fake network name to display&lt;br /&gt;
|parameter3 = int r Red component (0–255)&lt;br /&gt;
|parameter4 = int g Green component (0–255)&lt;br /&gt;
|parameter5 = int b Blue component (0–255)&lt;br /&gt;
|parameter6 = int a Alpha component (0–255)&lt;br /&gt;
|usage = Assign a custom fake network name to a ped with a specified RGBA color&lt;br /&gt;
|notes = &lt;br /&gt;
- This native only takes effect if [[natives.displayPlayerNames]] is active for the player&lt;br /&gt;
- Commonly used together to show custom names above streamed-in players&lt;br /&gt;
- Color values allow styling of the displayed name (RGBA)&lt;br /&gt;
|return1 = void&lt;br /&gt;
|exampleJS = natives.givePedFakeNetworkName(localPlayer.ped, &amp;quot;Officer_John&amp;quot;, 255, 255, 255, 255);&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.changeCarColour&amp;diff=11333</id>
		<title>natives.changeCarColour</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.changeCarColour&amp;diff=11333"/>
		<updated>2025-12-07T22:30:27Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.setDisplayPlayerNameAndIcon&lt;br /&gt;
|parameters = int playerId, bool enable&lt;br /&gt;
|parameter1 = int playerId The player index to affect&lt;br /&gt;
|parameter2 = bool enable True to show the name and icon, false to hide&lt;br /&gt;
|usage = Display or hide the player’s name and icon above their ped&lt;br /&gt;
|notes = playerId must be a valid client index&lt;br /&gt;
|return1 = void&lt;br /&gt;
|exampleJS = natives.setDisplayPlayerNameAndIcon(localPlayer.id, true);&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.changeCarColour&amp;diff=11332</id>
		<title>natives.changeCarColour</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.changeCarColour&amp;diff=11332"/>
		<updated>2025-12-07T22:28:15Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.setDisplayPlayerNameAndIcon&lt;br /&gt;
|parameters = int playerId, bool enable&lt;br /&gt;
|parameter1 = int playerId The player index to affect&lt;br /&gt;
|parameter2 = bool enable True to show the name and icon, false to hide&lt;br /&gt;
|usage = Display or hide the player’s name and icon above their ped&lt;br /&gt;
|notes = Intended to be used when a player streams in; playerId must be a valid client index&lt;br /&gt;
|return1 = void&lt;br /&gt;
|exampleJS = addEventHandler(&amp;quot;OnElementStreamIn&amp;quot;, function(event, element) {&lt;br /&gt;
    natives.givePedFakeNetworkName(element, &amp;quot;Officer_John&amp;quot;, 255, 255, 255, 255);&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.getHashKey&amp;diff=11311</id>
		<title>natives.getHashKey</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.getHashKey&amp;diff=11311"/>
		<updated>2025-12-04T00:16:49Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.getHashKey |parameters = string name |parameter1 = string name The model or resource name to convert into a hash key (&amp;quot;M_Y_COP&amp;quot;) |usage = Returns the hash key of a given string, typically used for models, animations, or other resources. |notes = - Commonly used before natives.requestModel to obtain the model hash - Works with ped names, vehicle names, and other resource identifiers |return1...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.getHashKey&lt;br /&gt;
|parameters = string name&lt;br /&gt;
|parameter1 = string name The model or resource name to convert into a hash key (&amp;quot;M_Y_COP&amp;quot;)&lt;br /&gt;
|usage = Returns the hash key of a given string, typically used for models, animations, or other resources.&lt;br /&gt;
|notes =&lt;br /&gt;
- Commonly used before [[natives.requestModel]] to obtain the model hash&lt;br /&gt;
- Works with ped names, vehicle names, and other resource identifiers&lt;br /&gt;
|return1 = int The hash key corresponding to the given string&lt;br /&gt;
|returnFail1 = int 0 if the string is invalid&lt;br /&gt;
|exampleJS = const hash = natives.getHashKey(&amp;quot;M_Y_COP&amp;quot;);&lt;br /&gt;
natives.requestModel(hash);&lt;br /&gt;
if (natives.hasModelLoaded(hash)) {&lt;br /&gt;
    const ped = natives.createChar(1, hash, localPlayer.position, true);&lt;br /&gt;
}&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.hasModelLoaded&amp;diff=11310</id>
		<title>natives.hasModelLoaded</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.hasModelLoaded&amp;diff=11310"/>
		<updated>2025-12-04T00:14:43Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.hasModelLoaded |parameters = int modelHash |parameter1 = int modelHash The model hash to check |usage = Returns whether the specified model has finished loading into memory. |notes = - Typically used after natives.requestModel to confirm readiness - Required before calling natives.createChar or spawning vehicles |return1 = bool True if the model is loaded, false otherwise |returnFail1 =...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.hasModelLoaded&lt;br /&gt;
|parameters = int modelHash&lt;br /&gt;
|parameter1 = int modelHash The model hash to check&lt;br /&gt;
|usage = Returns whether the specified model has finished loading into memory.&lt;br /&gt;
|notes =&lt;br /&gt;
- Typically used after [[natives.requestModel]] to confirm readiness&lt;br /&gt;
- Required before calling [[natives.createChar]] or spawning vehicles&lt;br /&gt;
|return1 = bool True if the model is loaded, false otherwise&lt;br /&gt;
|returnFail1 = bool False if the model is not loaded&lt;br /&gt;
|exampleJS = const hash = natives.getHashKey(&amp;quot;M_Y_COP&amp;quot;);&lt;br /&gt;
if (natives.hasModelLoaded(hash)) {&lt;br /&gt;
    const ped = natives.createChar(1, hash, localPlayer.position, true);&lt;br /&gt;
}&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.requestModel&amp;diff=11309</id>
		<title>natives.requestModel</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.requestModel&amp;diff=11309"/>
		<updated>2025-12-04T00:13:57Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.requestModel |parameters = int modelHash |parameter1 = int modelHash The model hash to request (obtained with natives.getHashKey) |usage = Requests the specified model to be loaded into memory. |notes = - Must be called before creating a ped or vehicle with that model - Use natives.hasModelLoaded to check if the model is ready |return1 = void |returnFail1 = void |exampleJS = natives.getH...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.requestModel&lt;br /&gt;
|parameters = int modelHash&lt;br /&gt;
|parameter1 = int modelHash The model hash to request (obtained with [[natives.getHashKey]])&lt;br /&gt;
|usage = Requests the specified model to be loaded into memory.&lt;br /&gt;
|notes =&lt;br /&gt;
- Must be called before creating a ped or vehicle with that model&lt;br /&gt;
- Use [[natives.hasModelLoaded]] to check if the model is ready&lt;br /&gt;
|return1 = void&lt;br /&gt;
|returnFail1 = void&lt;br /&gt;
|exampleJS = natives.getHashKey(&amp;quot;M_Y_COP&amp;quot;);&lt;br /&gt;
natives.requestModel(hash);&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.isPlayerTargettingChar&amp;diff=11308</id>
		<title>natives.isPlayerTargettingChar</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.isPlayerTargettingChar&amp;diff=11308"/>
		<updated>2025-12-04T00:10:58Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.isPlayerTargettingChar |parameters = int playerId, int ped |parameter1 = int playerId The local or network player ID |parameter2 = int ped The ped handle to check against |usage = Returns whether the specified player is hard-lock targeting the given ped. |notes = - Complements natives.isPlayerFreeAimingAtChar to cover both aim states - Typically polled inside OnDrawnHUD or OnProcess...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.isPlayerTargettingChar&lt;br /&gt;
|parameters = int playerId, int ped&lt;br /&gt;
|parameter1 = int playerId The local or network player ID&lt;br /&gt;
|parameter2 = int ped The ped handle to check against&lt;br /&gt;
|usage = Returns whether the specified player is hard-lock targeting the given ped.&lt;br /&gt;
|notes =&lt;br /&gt;
- Complements [[natives.isPlayerFreeAimingAtChar]] to cover both aim states&lt;br /&gt;
- Typically polled inside [[OnDrawnHUD]] or [[OnProcess]] for real-time detection&lt;br /&gt;
|return1 = bool True if the player is targeting the ped, false otherwise&lt;br /&gt;
|returnFail1 = bool False on failure or when not targeting&lt;br /&gt;
|exampleJS = natives.isPlayerTargettingChar(localPlayer.index, ped);&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.isPlayerFreeAimingAtChar&amp;diff=11307</id>
		<title>natives.isPlayerFreeAimingAtChar</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.isPlayerFreeAimingAtChar&amp;diff=11307"/>
		<updated>2025-12-04T00:09:39Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.isPlayerFreeAimingAtChar |parameters = int playerId, int ped |parameter1 = int playerId The local or network player ID |parameter2 = int ped The ped handle to check against |usage = Returns whether the specified player is free-aiming at the given ped (without hard lock-on). |notes = - Commonly used together with natives.isPlayerTargettingChar to cover both aim states - Typically polled insid...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.isPlayerFreeAimingAtChar&lt;br /&gt;
|parameters = int playerId, int ped&lt;br /&gt;
|parameter1 = int playerId The local or network player ID&lt;br /&gt;
|parameter2 = int ped The ped handle to check against&lt;br /&gt;
|usage = Returns whether the specified player is free-aiming at the given ped (without hard lock-on).&lt;br /&gt;
|notes =&lt;br /&gt;
- Commonly used together with [[natives.isPlayerTargettingChar]] to cover both aim states&lt;br /&gt;
- Typically polled inside [[OnDrawnHUD]] or [[OnProcess]] to react in real time&lt;br /&gt;
|return1 = bool True if the player is free-aiming at the ped, false otherwise&lt;br /&gt;
|returnFail1 = bool False on failure or when not aiming&lt;br /&gt;
|exampleJS = natives.isPlayerFreeAimingAtChar(PlayerID, ped);&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.haveAnimsLoaded&amp;diff=11306</id>
		<title>natives.haveAnimsLoaded</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.haveAnimsLoaded&amp;diff=11306"/>
		<updated>2025-12-04T00:06:40Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.haveAnimsLoaded&lt;br /&gt;
|parameters = string animDict&lt;br /&gt;
|parameter1 = string animDict The animation dictionary name (e.g. &amp;quot;cop&amp;quot;)&lt;br /&gt;
|usage = Checks if the specified animation dictionary has been loaded into memory.&lt;br /&gt;
|notes =&lt;br /&gt;
- Must be called before playing an animation to ensure the dictionary is available&lt;br /&gt;
- Often used together with [[natives.requestAnims]] to load missing dictionaries&lt;br /&gt;
|return1 = bool True if the animation dictionary is loaded, false otherwise&lt;br /&gt;
|returnFail1 = bool False if the dictionary is not loaded&lt;br /&gt;
|exampleJS = natives.haveAnimsLoaded(&amp;quot;cop&amp;quot;);&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.requestAnims&amp;diff=11305</id>
		<title>natives.requestAnims</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.requestAnims&amp;diff=11305"/>
		<updated>2025-12-04T00:05:29Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.requestAnims |parameters = string animDict |parameter1 = string animDict The animation dictionary name to load (e.g. &amp;quot;cop&amp;quot;) |usage = Requests the specified animation dictionary to be loaded into memory. |notes = - After requesting, use natives.haveAnimsLoaded to check if the dictionary is ready - Required before calling natives.taskPlayAnimWithFlags with animations from that dictionary |...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.requestAnims&lt;br /&gt;
|parameters = string animDict&lt;br /&gt;
|parameter1 = string animDict The animation dictionary name to load (e.g. &amp;quot;cop&amp;quot;)&lt;br /&gt;
|usage = Requests the specified animation dictionary to be loaded into memory.&lt;br /&gt;
|notes =&lt;br /&gt;
- After requesting, use [[natives.haveAnimsLoaded]] to check if the dictionary is ready&lt;br /&gt;
- Required before calling [[natives.taskPlayAnimWithFlags]] with animations from that dictionary&lt;br /&gt;
|return1 = void&lt;br /&gt;
|returnFail1 = void&lt;br /&gt;
|exampleJS = natives.requestAnims(&amp;quot;cop&amp;quot;);&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.haveAnimsLoaded&amp;diff=11304</id>
		<title>natives.haveAnimsLoaded</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.haveAnimsLoaded&amp;diff=11304"/>
		<updated>2025-12-04T00:04:26Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.haveAnimsLoaded |parameters = string animDict |parameter1 = string animDict The animation dictionary name (e.g. &amp;quot;cop&amp;quot;) |usage = Checks if the specified animation dictionary has been loaded into memory. |notes = - Must be called before playing an animation to ensure the dictionary is available - Often used together with natives.requestAnims to load missing dictionaries |return1 = bool True if...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.haveAnimsLoaded&lt;br /&gt;
|parameters = string animDict&lt;br /&gt;
|parameter1 = string animDict The animation dictionary name (e.g. &amp;quot;cop&amp;quot;)&lt;br /&gt;
|usage = Checks if the specified animation dictionary has been loaded into memory.&lt;br /&gt;
|notes =&lt;br /&gt;
- Must be called before playing an animation to ensure the dictionary is available&lt;br /&gt;
- Often used together with [[natives.requestAnims]] to load missing dictionaries&lt;br /&gt;
|return1 = bool True if the animation dictionary is loaded, false otherwise&lt;br /&gt;
|returnFail1 = bool False if the dictionary is not loaded&lt;br /&gt;
|exampleJS = if (natives.haveAnimsLoaded(&amp;quot;cop&amp;quot;)) {&lt;br /&gt;
        console.log(&amp;quot;Animation dictionary &#039;cop&#039; not loaded yet&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.setCharDecisionMaker&amp;diff=11303</id>
		<title>natives.setCharDecisionMaker</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.setCharDecisionMaker&amp;diff=11303"/>
		<updated>2025-12-04T00:02:26Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setCharDecisionMaker |parameters = int ped, int decisionMakerId |parameter1 = int ped The ped handle |parameter2 = int decisionMakerId The decision maker ID that defines the ped’s AI behavior |usage = Assigns a decision maker to a ped, which controls how the ped reacts to threats, combat, and ambient events. |notes = - Often combined with natives.createChar to spawn a ped - Typically used...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.setCharDecisionMaker&lt;br /&gt;
|parameters = int ped, int decisionMakerId&lt;br /&gt;
|parameter1 = int ped The ped handle&lt;br /&gt;
|parameter2 = int decisionMakerId The decision maker ID that defines the ped’s AI behavior&lt;br /&gt;
|usage = Assigns a decision maker to a ped, which controls how the ped reacts to threats, combat, and ambient events.&lt;br /&gt;
|notes =&lt;br /&gt;
- Often combined with [[natives.createChar]] to spawn a ped&lt;br /&gt;
- Typically used together with [[natives.setBlockingOfNonTemporaryEvents]] and [[natives.taskPlayAnimWithFlags]] to override AI and force scripted animations&lt;br /&gt;
|return1 = void&lt;br /&gt;
|returnFail1 = void&lt;br /&gt;
|exampleJS = addCommandHandler(&amp;quot;setdm&amp;quot;, function(command, params, client) {&lt;br /&gt;
        natives.setCharDecisionMaker(ped, 4);&lt;br /&gt;
    }&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.setBlockingOfNonTemporaryEvents&amp;diff=11302</id>
		<title>natives.setBlockingOfNonTemporaryEvents</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.setBlockingOfNonTemporaryEvents&amp;diff=11302"/>
		<updated>2025-12-04T00:00:45Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setBlockingOfNonTemporaryEvents |parameters = int ped, bool toggle |parameter1 = int ped The ped handle |parameter2 = bool toggle True to block non-temporary events, false to allow them |usage = Prevents the ped from reacting to non-temporary events such as fleeing, fighting, or ambient AI behaviors. Commonly used before forcing a ped into a scripted animation. |notes = - Often combined with n...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.setBlockingOfNonTemporaryEvents&lt;br /&gt;
|parameters = int ped, bool toggle&lt;br /&gt;
|parameter1 = int ped The ped handle&lt;br /&gt;
|parameter2 = bool toggle True to block non-temporary events, false to allow them&lt;br /&gt;
|usage = Prevents the ped from reacting to non-temporary events such as fleeing, fighting, or ambient AI behaviors. Commonly used before forcing a ped into a scripted animation.&lt;br /&gt;
|notes =&lt;br /&gt;
- Often combined with [[natives.createChar]] to spawn a ped&lt;br /&gt;
- Typically used together with [[natives.taskPlayAnimWithFlags]] to keep the ped in a looped animation without interruption&lt;br /&gt;
|return1 = void&lt;br /&gt;
|returnFail1 = void&lt;br /&gt;
|exampleJS = addCommandHandler(&amp;quot;handsup&amp;quot;, function(command, params, client) {&lt;br /&gt;
        natives.setBlockingOfNonTemporaryEvents(ped, true);&lt;br /&gt;
    }&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.taskPlayAnimWithFlags&amp;diff=11301</id>
		<title>natives.taskPlayAnimWithFlags</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.taskPlayAnimWithFlags&amp;diff=11301"/>
		<updated>2025-12-03T23:55:37Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.taskPlayAnimWithFlags&lt;br /&gt;
|parameters = int ped, string animName, string animDict, float speed, int flag, int duration&lt;br /&gt;
|parameter1 = int ped The ped handle&lt;br /&gt;
|parameter2 = string animName The animation name (&amp;quot;armsup_loop&amp;quot;)&lt;br /&gt;
|parameter3 = string animDict The animation dictionary (&amp;quot;cop&amp;quot;)&lt;br /&gt;
|parameter4 = float speed The playback speed (default 8.0)&lt;br /&gt;
|parameter5 = int flag Control flag (blend/priority, usually 0)&lt;br /&gt;
|parameter6 = int duration Duration of the animation (-1 for infinite loop)&lt;br /&gt;
|usage = Play an animation on a ped with specific flags and duration&lt;br /&gt;
|return1 = void&lt;br /&gt;
|exampleJS = addCommandHandler(&amp;quot;handsup&amp;quot;, function(command, params, client) {&lt;br /&gt;
    const ped = localPlayer.ped;&lt;br /&gt;
    if (ped) {&lt;br /&gt;
        // Play the hands up animation in infinite loop&lt;br /&gt;
        natives.taskPlayAnimWithFlags(ped, &amp;quot;armsup_loop&amp;quot;, &amp;quot;cop&amp;quot;, 8.0, 0, -1);&lt;br /&gt;
    }&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.taskPlayAnimWithFlags&amp;diff=11300</id>
		<title>natives.taskPlayAnimWithFlags</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.taskPlayAnimWithFlags&amp;diff=11300"/>
		<updated>2025-12-03T23:55:05Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.taskPlayAnimWithFlags |parameters = int ped, string animName, string animDict, float speed, int flag, int duration |parameter1 = int ped The ped handle |parameter2 = string animName The animation name (e.g. &amp;quot;armsup_loop&amp;quot;) |parameter3 = string animDict The animation dictionary (e.g. &amp;quot;cop&amp;quot;) |parameter4 = float speed The playback speed (default 8.0) |parameter5 = int flag Control flag (blend/priori...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.taskPlayAnimWithFlags&lt;br /&gt;
|parameters = int ped, string animName, string animDict, float speed, int flag, int duration&lt;br /&gt;
|parameter1 = int ped The ped handle&lt;br /&gt;
|parameter2 = string animName The animation name (e.g. &amp;quot;armsup_loop&amp;quot;)&lt;br /&gt;
|parameter3 = string animDict The animation dictionary (e.g. &amp;quot;cop&amp;quot;)&lt;br /&gt;
|parameter4 = float speed The playback speed (default 8.0)&lt;br /&gt;
|parameter5 = int flag Control flag (blend/priority, usually 0)&lt;br /&gt;
|parameter6 = int duration Duration of the animation (-1 for infinite loop)&lt;br /&gt;
|usage = Play an animation on a ped with specific flags and duration&lt;br /&gt;
|return1 = void&lt;br /&gt;
|exampleJS = addCommandHandler(&amp;quot;handsup&amp;quot;, function(command, params, client) {&lt;br /&gt;
    const ped = localPlayer.ped;&lt;br /&gt;
    if (ped) {&lt;br /&gt;
        // Play the hands up animation in infinite loop&lt;br /&gt;
        natives.taskPlayAnimWithFlags(ped, &amp;quot;armsup_loop&amp;quot;, &amp;quot;cop&amp;quot;, 8.0, 0, -1);&lt;br /&gt;
    }&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.createChar&amp;diff=11299</id>
		<title>natives.createChar</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.createChar&amp;diff=11299"/>
		<updated>2025-12-03T19:53:51Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.createChar&lt;br /&gt;
|parameters = int pedType, int modelHash, Vec3 position, bool networked&lt;br /&gt;
|parameter1 = int pedType The ped type (see [[Defines/IV#GTA_IV_-_Ped_Defines|Ped Defines]])&lt;br /&gt;
|parameter2 = int modelHash The model hash&lt;br /&gt;
|parameter3 = Vec3 position The spawn position&lt;br /&gt;
|parameter4 = bool networked Whether the ped is networked&lt;br /&gt;
|usage = Create a ped&lt;br /&gt;
|return1 = void&lt;br /&gt;
|exampleJS = addCommandHandler(&amp;quot;spawnped&amp;quot;, function(command, params, client) {&lt;br /&gt;
    const hash = natives.getHashKey(&amp;quot;M_Y_COP&amp;quot;);&lt;br /&gt;
    const pos = localPlayer.position;&lt;br /&gt;
    natives.requestModel(hash);&lt;br /&gt;
    if (natives.hasModelLoaded(hash)) {&lt;br /&gt;
        const ped = natives.createChar(1, hash, pos, true);&lt;br /&gt;
        natives.markModelAsNoLongerNeeded(hash);&lt;br /&gt;
    }&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.createChar&amp;diff=11298</id>
		<title>natives.createChar</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.createChar&amp;diff=11298"/>
		<updated>2025-12-03T19:52:59Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.createChar |parameters = int pedType, int modelHash, Vec3 position, bool networked |parameter1 = int pedType The ped type (see Ped Defines) |parameter2 = int modelHash The model hash |parameter3 = Vec3 position The spawn position |parameter4 = bool networked Whether the ped is networked |usage = Create a ped |return1 = Ped |returnFail1 = void |exampleJS = addC...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.createChar&lt;br /&gt;
|parameters = int pedType, int modelHash, Vec3 position, bool networked&lt;br /&gt;
|parameter1 = int pedType The ped type (see [[Defines/IV#GTA_IV_-_Ped_Defines|Ped Defines]])&lt;br /&gt;
|parameter2 = int modelHash The model hash&lt;br /&gt;
|parameter3 = Vec3 position The spawn position&lt;br /&gt;
|parameter4 = bool networked Whether the ped is networked&lt;br /&gt;
|usage = Create a ped&lt;br /&gt;
|return1 = Ped&lt;br /&gt;
|returnFail1 = void&lt;br /&gt;
|exampleJS = addCommandHandler(&amp;quot;spawnped&amp;quot;, function(command, params, client) {&lt;br /&gt;
    const hash = natives.getHashKey(&amp;quot;M_Y_COP&amp;quot;);&lt;br /&gt;
    const pos = localPlayer.position;&lt;br /&gt;
    natives.requestModel(hash);&lt;br /&gt;
    if (natives.hasModelLoaded(hash)) {&lt;br /&gt;
        const ped = natives.createChar(1, hash, pos, true);&lt;br /&gt;
        natives.markModelAsNoLongerNeeded(hash);&lt;br /&gt;
    }&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.changeCarColour&amp;diff=11297</id>
		<title>natives.changeCarColour</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.changeCarColour&amp;diff=11297"/>
		<updated>2025-12-02T16:04:47Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.changeCarColour |parameters = Vehicle vehicle, int primaryColor, int secondaryColor |parameter1 = Vehicle vehicle The vehicle |parameter2 = int primaryColor The primary color index |parameter3 = int secondaryColor The secondary color index |usage = Change the primary and secondary colors of a vehicle |notes = Color indices usually range from 0 to 133 in GTA IV |return1 = void |exampleJS = addCom...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.changeCarColour&lt;br /&gt;
|parameters = Vehicle vehicle, int primaryColor, int secondaryColor&lt;br /&gt;
|parameter1 = Vehicle vehicle The vehicle&lt;br /&gt;
|parameter2 = int primaryColor The primary color index&lt;br /&gt;
|parameter3 = int secondaryColor The secondary color index&lt;br /&gt;
|usage = Change the primary and secondary colors of a vehicle&lt;br /&gt;
|notes = Color indices usually range from 0 to 133 in GTA IV&lt;br /&gt;
|return1 = void&lt;br /&gt;
|exampleJS = addCommandHandler(&amp;quot;color&amp;quot;, function(command, params, client) { &lt;br /&gt;
    if (localPlayer &amp;amp;&amp;amp; localPlayer.vehicle) { &lt;br /&gt;
        natives.changeCarColour(localPlayer.vehicle, 1, 2); &lt;br /&gt;
    } &lt;br /&gt;
}); &lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.setTextDropshadow&amp;diff=11296</id>
		<title>natives.setTextDropshadow</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.setTextDropshadow&amp;diff=11296"/>
		<updated>2025-11-28T16:56:21Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setTextDropshadow |parameters = bool enable, int r, int g, int b, int a |parameter1 = bool enable True to enable dropshadow effect, false to disable |parameter2 = int r Red component of the shadow colour (0–255) |parameter3 = int g Green component of the shadow colour (0–255) |parameter4 = int b Blue component of the shadow colour (0–255) |parameter5 = int a Alpha component (opacity) of th...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.setTextDropshadow&lt;br /&gt;
|parameters = bool enable, int r, int g, int b, int a&lt;br /&gt;
|parameter1 = bool enable True to enable dropshadow effect, false to disable&lt;br /&gt;
|parameter2 = int r Red component of the shadow colour (0–255)&lt;br /&gt;
|parameter3 = int g Green component of the shadow colour (0–255)&lt;br /&gt;
|parameter4 = int b Blue component of the shadow colour (0–255)&lt;br /&gt;
|parameter5 = int a Alpha component (opacity) of the shadow colour (0–255)&lt;br /&gt;
|usage = Enables or disables a coloured dropshadow behind text drawn on the screen&lt;br /&gt;
|notes = &lt;br /&gt;
- Must be called before [[natives.displayTextWithLiteralString]] or similar text drawing functions&lt;br /&gt;
- The dropshadow improves readability by adding a coloured shadow offset behind the text&lt;br /&gt;
- Alpha controls the opacity of the shadow; 255 = fully visible, 0 = invisible&lt;br /&gt;
- Can be combined with [[natives.setTextEdge]] for stronger contrast&lt;br /&gt;
|return1 = void&lt;br /&gt;
|returnFail1 = void&lt;br /&gt;
|exampleJS = addEventHandler(&amp;quot;OnDrawnHUD&amp;quot;, function() {&lt;br /&gt;
    // White text with a black dropshadow&lt;br /&gt;
    natives.setTextScale(0.30, 0.30);&lt;br /&gt;
    natives.setTextFont(0);&lt;br /&gt;
    natives.setTextColour(255, 255, 255, 255);&lt;br /&gt;
    natives.setTextDropshadow(true, 0, 0, 0, 200);&lt;br /&gt;
&lt;br /&gt;
    natives.displayTextWithLiteralString(new Vec2(0.05, 0.15), &amp;quot;STRING&amp;quot;, &amp;quot;Text with black shadow&amp;quot;);&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.setTextEdge&amp;diff=11295</id>
		<title>natives.setTextEdge</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.setTextEdge&amp;diff=11295"/>
		<updated>2025-11-28T16:53:48Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setTextEdge |parameters = bool enable, int r, int g, int b, int a |parameter1 = bool enable True to enable edge effect, false to disable |parameter2 = int r Red component of the edge colour (0–255) |parameter3 = int g Green component of the edge colour (0–255) |parameter4 = int b Blue component of the edge colour (0–255) |parameter5 = int a Alpha component (opacity) of the edge colour (0...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.setTextEdge&lt;br /&gt;
|parameters = bool enable, int r, int g, int b, int a&lt;br /&gt;
|parameter1 = bool enable True to enable edge effect, false to disable&lt;br /&gt;
|parameter2 = int r Red component of the edge colour (0–255)&lt;br /&gt;
|parameter3 = int g Green component of the edge colour (0–255)&lt;br /&gt;
|parameter4 = int b Blue component of the edge colour (0–255)&lt;br /&gt;
|parameter5 = int a Alpha component (opacity) of the edge colour (0–255)&lt;br /&gt;
|usage = Enables or disables a coloured edge (outline) around text drawn on the screen&lt;br /&gt;
|notes = &lt;br /&gt;
- Must be called before [[natives.displayTextWithLiteralString]] or similar text drawing functions&lt;br /&gt;
- The edge effect is essentially an outline that improves readability against backgrounds&lt;br /&gt;
- Alpha controls the opacity of the edge; 255 = fully visible, 0 = invisible&lt;br /&gt;
- Combine with [[natives.setTextDropshadow]] for stronger contrast&lt;br /&gt;
|return1 = void&lt;br /&gt;
|returnFail1 = void&lt;br /&gt;
|exampleJS = addEventHandler(&amp;quot;OnDrawnHUD&amp;quot;, function() {&lt;br /&gt;
    // White text with a black edge outline&lt;br /&gt;
    natives.setTextScale(0.30, 0.30);&lt;br /&gt;
    natives.setTextFont(0);&lt;br /&gt;
    natives.setTextColour(255, 255, 255, 255);&lt;br /&gt;
    natives.setTextEdge(true, 0, 0, 0, 255);&lt;br /&gt;
&lt;br /&gt;
    natives.displayTextWithLiteralString(new Vec2(0.05, 0.10), &amp;quot;STRING&amp;quot;, &amp;quot;Text with black border&amp;quot;);&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.setTextCentre&amp;diff=11294</id>
		<title>natives.setTextCentre</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.setTextCentre&amp;diff=11294"/>
		<updated>2025-11-28T16:50:17Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setTextCentre |parameters = bool centre |parameter1 = bool centre True to center the text horizontally, false to align normally (left by default) |usage = Sets whether text drawn on the screen should be horizontally centered |notes =  - Must be called before natives.displayTextWithLiteralString or similar text drawing functions - Only affects horizontal alignment; vertical alignment is contr...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.setTextCentre&lt;br /&gt;
|parameters = bool centre&lt;br /&gt;
|parameter1 = bool centre True to center the text horizontally, false to align normally (left by default)&lt;br /&gt;
|usage = Sets whether text drawn on the screen should be horizontally centered&lt;br /&gt;
|notes = &lt;br /&gt;
- Must be called before [[natives.displayTextWithLiteralString]] or similar text drawing functions&lt;br /&gt;
- Only affects horizontal alignment; vertical alignment is controlled separately&lt;br /&gt;
- Useful for HUD elements or messages that need to be centered on screen&lt;br /&gt;
|return1 = void&lt;br /&gt;
|returnFail1 = void&lt;br /&gt;
|exampleJS = addEventHandler(&amp;quot;OnDrawnHUD&amp;quot;, function() {&lt;br /&gt;
    // Centered text example&lt;br /&gt;
    natives.setTextScale(0.30, 0.30);&lt;br /&gt;
    natives.setTextFont(0);&lt;br /&gt;
    natives.setTextColour(255, 255, 255, 255);&lt;br /&gt;
    natives.setTextCentre(true);&lt;br /&gt;
&lt;br /&gt;
    natives.displayTextWithLiteralString(new Vec2(0.50, 0.10), &amp;quot;STRING&amp;quot;, &amp;quot;Text centered on screen&amp;quot;);&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.hasScriptLoaded&amp;diff=11293</id>
		<title>natives.hasScriptLoaded</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.hasScriptLoaded&amp;diff=11293"/>
		<updated>2025-11-28T16:45:34Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.hasScriptLoaded |parameters = string scriptName |parameter1 = string scriptName Name of the script to check |usage = Checks if a requested script has finished loading into memory |notes =  - Returns true if the script is loaded and ready to start - Must be used after natives.requestScript to confirm the script is available - Useful to avoid errors when calling natives.startNewScript |ret...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.hasScriptLoaded&lt;br /&gt;
|parameters = string scriptName&lt;br /&gt;
|parameter1 = string scriptName Name of the script to check&lt;br /&gt;
|usage = Checks if a requested script has finished loading into memory&lt;br /&gt;
|notes = &lt;br /&gt;
- Returns true if the script is loaded and ready to start&lt;br /&gt;
- Must be used after [[natives.requestScript]] to confirm the script is available&lt;br /&gt;
- Useful to avoid errors when calling [[natives.startNewScript]]&lt;br /&gt;
|return1 = bool True if the script is loaded&lt;br /&gt;
|returnFail1 = bool False if the script is not loaded&lt;br /&gt;
|exampleJS = bindEventHandler(&amp;quot;OnResourceReady&amp;quot;, thisResource, function() {&lt;br /&gt;
    // Request and check script&lt;br /&gt;
    natives.requestScript(&amp;quot;trafficControl&amp;quot;);&lt;br /&gt;
    if (natives.hasScriptLoaded(&amp;quot;trafficControl&amp;quot;)) {&lt;br /&gt;
        natives.startNewScript(&amp;quot;trafficControl&amp;quot;, 1024);&lt;br /&gt;
        console.log(&amp;quot;trafficControl script started successfully.&amp;quot;);&lt;br /&gt;
    } else {&lt;br /&gt;
        console.log(&amp;quot;Script trafficControl is not yet loaded.&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.startNewScript&amp;diff=11292</id>
		<title>natives.startNewScript</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.startNewScript&amp;diff=11292"/>
		<updated>2025-11-28T16:42:59Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.startNewScript |parameters = string scriptName, int stackSize |parameter1 = string scriptName Name of the script to start |parameter2 = int stackSize Size of the stack memory to allocate (default ~1024) |usage = Starts a new script that has been requested and loaded |notes =  - Must be called after natives.requestScript and natives.hasScriptLoaded return true - The stack size defines how...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.startNewScript&lt;br /&gt;
|parameters = string scriptName, int stackSize&lt;br /&gt;
|parameter1 = string scriptName Name of the script to start&lt;br /&gt;
|parameter2 = int stackSize Size of the stack memory to allocate (default ~1024)&lt;br /&gt;
|usage = Starts a new script that has been requested and loaded&lt;br /&gt;
|notes = &lt;br /&gt;
- Must be called after [[natives.requestScript]] and [[natives.hasScriptLoaded]] return true&lt;br /&gt;
- The stack size defines how much memory the script can use; larger scripts may require bigger values&lt;br /&gt;
|return1 = void&lt;br /&gt;
|returnFail1 = void&lt;br /&gt;
|exampleJS = bindEventHandler(&amp;quot;OnResourceReady&amp;quot;, thisResource, function() {&lt;br /&gt;
    // Start the &amp;quot;trafficControl&amp;quot; script with a stack size of 2048&lt;br /&gt;
    natives.startNewScript(&amp;quot;trafficControl&amp;quot;, 2048);&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.requestScript&amp;diff=11291</id>
		<title>natives.requestScript</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.requestScript&amp;diff=11291"/>
		<updated>2025-11-28T16:42:05Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.requestScript |parameters = string scriptName |parameter1 = string scriptName Name of the script to request |usage = Requests a script to be loaded into memory so it can be started later |notes =  - Must be called before natives.startNewScript to ensure the script is available - If the script does not exist, the request will silently fail |return1 = void |returnFail1 = void |exampleJS = bind...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.requestScript&lt;br /&gt;
|parameters = string scriptName&lt;br /&gt;
|parameter1 = string scriptName Name of the script to request&lt;br /&gt;
|usage = Requests a script to be loaded into memory so it can be started later&lt;br /&gt;
|notes = &lt;br /&gt;
- Must be called before [[natives.startNewScript]] to ensure the script is available&lt;br /&gt;
- If the script does not exist, the request will silently fail&lt;br /&gt;
|return1 = void&lt;br /&gt;
|returnFail1 = void&lt;br /&gt;
|exampleJS = bindEventHandler(&amp;quot;OnResourceReady&amp;quot;, thisResource, function() {&lt;br /&gt;
    // Request the &amp;quot;trafficControl&amp;quot; script&lt;br /&gt;
    natives.requestScript(&amp;quot;trafficControl&amp;quot;);&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=File:radar_base.png&amp;diff=11290</id>
		<title>File:radar base.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=File:radar_base.png&amp;diff=11290"/>
		<updated>2025-11-28T14:34:18Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=File:radar_objective.png&amp;diff=11289</id>
		<title>File:radar objective.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=File:radar_objective.png&amp;diff=11289"/>
		<updated>2025-11-28T14:23:51Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=File:radar_revenge.png&amp;diff=11288</id>
		<title>File:radar revenge.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=File:radar_revenge.png&amp;diff=11288"/>
		<updated>2025-11-28T14:21:10Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=File:radar_multiplayer_tutorial.png&amp;diff=11287</id>
		<title>File:radar multiplayer tutorial.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=File:radar_multiplayer_tutorial.png&amp;diff=11287"/>
		<updated>2025-11-28T14:19:57Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=File:radar_destination.png&amp;diff=11286</id>
		<title>File:radar destination.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=File:radar_destination.png&amp;diff=11286"/>
		<updated>2025-11-28T14:14:01Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=File:radar_destination_2.png&amp;diff=11285</id>
		<title>File:radar destination 2.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=File:radar_destination_2.png&amp;diff=11285"/>
		<updated>2025-11-28T14:12:34Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=File:radar_destination_1.png&amp;diff=11284</id>
		<title>File:radar destination 1.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=File:radar_destination_1.png&amp;diff=11284"/>
		<updated>2025-11-28T14:11:41Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.setTextColour&amp;diff=11283</id>
		<title>natives.setTextColour</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.setTextColour&amp;diff=11283"/>
		<updated>2025-11-28T12:19:34Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setTextColour |parameters = int r, int g, int b, int a |parameter1 = int r Red component (0–255) |parameter2 = int g Green component (0–255) |parameter3 = int b Blue component (0–255) |parameter4 = int a Alpha component (0–255), controls opacity (0 = fully transparent, 255 = fully opaque) |usage = Sets the RGBA colour and opacity of text drawn on the screen |notes =  - Must be called bef...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.setTextColour&lt;br /&gt;
|parameters = int r, int g, int b, int a&lt;br /&gt;
|parameter1 = int r Red component (0–255)&lt;br /&gt;
|parameter2 = int g Green component (0–255)&lt;br /&gt;
|parameter3 = int b Blue component (0–255)&lt;br /&gt;
|parameter4 = int a Alpha component (0–255), controls opacity (0 = fully transparent, 255 = fully opaque)&lt;br /&gt;
|usage = Sets the RGBA colour and opacity of text drawn on the screen&lt;br /&gt;
|notes = &lt;br /&gt;
- Must be called before [[natives.displayTextWithLiteralString]] or similar text drawing functions&lt;br /&gt;
- The alpha channel defines transparency: 0 invisible, 255 fully visible&lt;br /&gt;
- Combine with [[natives.setTextScale]] and [[natives.setTextFont]] for complete styling&lt;br /&gt;
|return1 = void&lt;br /&gt;
|returnFail1 = void&lt;br /&gt;
|exampleJS = addEventHandler(&amp;quot;OnDrawnHUD&amp;quot;, function() {&lt;br /&gt;
    // White text with 80% opacity&lt;br /&gt;
    natives.setTextScale(0.30, 0.30);&lt;br /&gt;
    natives.setTextFont(0);&lt;br /&gt;
    natives.setTextColour(255, 255, 255, 200);&lt;br /&gt;
&lt;br /&gt;
    natives.displayTextWithLiteralString(new Vec2(0.05, 0.10), &amp;quot;STRING&amp;quot;, &amp;quot;Text with opacity 200/255&amp;quot;);&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.setTextFont&amp;diff=11282</id>
		<title>natives.setTextFont</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.setTextFont&amp;diff=11282"/>
		<updated>2025-11-28T12:15:51Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setTextFont |parameters = int fontId |parameter1 = int fontId Font style index (0–8 available) |usage = Sets the font style used for text drawn on the screen |notes =  - Must be called before natives.displayTextWithLiteralString or similar text drawing functions - Available font IDs range from 0 to 8 - Each font ID corresponds to a different style; some may look similar depending on the ga...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.setTextFont&lt;br /&gt;
|parameters = int fontId&lt;br /&gt;
|parameter1 = int fontId Font style index (0–8 available)&lt;br /&gt;
|usage = Sets the font style used for text drawn on the screen&lt;br /&gt;
|notes = &lt;br /&gt;
- Must be called before [[natives.displayTextWithLiteralString]] or similar text drawing functions&lt;br /&gt;
- Available font IDs range from 0 to 8&lt;br /&gt;
- Each font ID corresponds to a different style; some may look similar depending on the game build&lt;br /&gt;
- Common usage: 0 for default HUD font, higher values for stylized text&lt;br /&gt;
|return1 = void&lt;br /&gt;
|returnFail1 = void&lt;br /&gt;
|exampleJS = addEventHandler(&amp;quot;OnDrawnHUD&amp;quot;, function() {&lt;br /&gt;
    // Configure text style with font 0&lt;br /&gt;
    natives.setTextScale(0.30, 0.30);&lt;br /&gt;
    natives.setTextFont(0);&lt;br /&gt;
    natives.setTextColour(255, 255, 255, 255);&lt;br /&gt;
&lt;br /&gt;
    natives.displayTextWithLiteralString(new Vec2(0.05, 0.10), &amp;quot;STRING&amp;quot;, &amp;quot;Text with font size 0&amp;quot;);&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.displayTextWithLiteralString&amp;diff=11281</id>
		<title>natives.displayTextWithLiteralString</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.displayTextWithLiteralString&amp;diff=11281"/>
		<updated>2025-11-28T12:11:48Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.displayTextWithLiteralString&lt;br /&gt;
|parameters = Vec2 position, string literal, string text&lt;br /&gt;
|parameter1 = Vec2 position Normalized screen coordinates (X,Y) where the text will be drawn&lt;br /&gt;
|parameter2 = string literal Literal type for the text, usually &amp;quot;STRING&amp;quot;&lt;br /&gt;
|parameter3 = string text The actual text content to display&lt;br /&gt;
|usage = Draws a text string on the screen at the specified position using a literal identifier&lt;br /&gt;
|notes = &lt;br /&gt;
- Must be called inside a rendering event such as [[OnDrawnHUD]] so the text is drawn each frame&lt;br /&gt;
- Use supporting natives like [[natives.setTextScale]], [[natives.setTextColour]], [[natives.setTextFont]] to style the text before calling&lt;br /&gt;
- The literal is typically &amp;quot;STRING&amp;quot; for arbitrary text, but other literals may exist for predefined labels&lt;br /&gt;
|return1 = void&lt;br /&gt;
|returnFail1 = void&lt;br /&gt;
|exampleJS = addEventHandler(&amp;quot;OnDrawnHUD&amp;quot;, function() {&lt;br /&gt;
    // Configure text style&lt;br /&gt;
    natives.setTextScale(0.40, 0.40);&lt;br /&gt;
    natives.setTextFont(0);&lt;br /&gt;
    natives.setTextColour(255, 255, 255, 255);&lt;br /&gt;
    natives.setTextCentre(false);&lt;br /&gt;
    natives.setTextProportional(true);&lt;br /&gt;
    natives.setTextDropshadow(true, 0, 0, 0, 255);&lt;br /&gt;
&lt;br /&gt;
    // Draw text at top-left corner&lt;br /&gt;
    natives.displayTextWithLiteralString(new Vec2(0.05, 0.10), &amp;quot;STRING&amp;quot;, &amp;quot;Hi, text example&amp;quot;);&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.setTextScale&amp;diff=11280</id>
		<title>natives.setTextScale</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.setTextScale&amp;diff=11280"/>
		<updated>2025-11-28T12:10:49Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.setTextScale&lt;br /&gt;
|parameters = float xScale, float yScale&lt;br /&gt;
|parameter1 = float xScale Horizontal scale factor for the text (0.20)&lt;br /&gt;
|parameter2 = float yScale Vertical scale factor for the text (0.40)&lt;br /&gt;
|usage = Sets the horizontal and vertical scale of text drawn on the screen&lt;br /&gt;
|notes = &lt;br /&gt;
- Set the scale in the same frame before calling [[natives.displayTextWithLiteralString]] or other text draw functions&lt;br /&gt;
- Recommended starting value is 0.20 for visibility; medium sizes are typically 0.20–0.40&lt;br /&gt;
- Larger sizes: 0.50–0.80 (large), &amp;gt;0.80 (extra-large). The engine accepts values above 1.0&lt;br /&gt;
- X and Y are independent: you can stretch or compress text by using different scales&lt;br /&gt;
|return1 = void&lt;br /&gt;
|returnFail1 = void&lt;br /&gt;
|exampleJS = addEventHandler(&amp;quot;OnDrawnHUD&amp;quot;, function() {&lt;br /&gt;
    // Medium readable size&lt;br /&gt;
    natives.setTextScale(0.30, 0.30);&lt;br /&gt;
    natives.setTextFont(0);&lt;br /&gt;
    natives.setTextColour(255, 255, 255, 255);&lt;br /&gt;
    natives.setTextCentre(false);&lt;br /&gt;
    natives.setTextProportional(true);&lt;br /&gt;
    natives.setTextDropshadow(true, 0, 0, 0, 255);&lt;br /&gt;
&lt;br /&gt;
    natives.displayTextWithLiteralString(new Vec2(0.05, 0.10), &amp;quot;STRING&amp;quot;, &amp;quot;Visible text of medium size (0.30)&amp;quot;);&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
	<entry>
		<id>https://wiki.gtaconnected.com/wiki/index.php?title=natives.setTextScale&amp;diff=11279</id>
		<title>natives.setTextScale</title>
		<link rel="alternate" type="text/html" href="https://wiki.gtaconnected.com/wiki/index.php?title=natives.setTextScale&amp;diff=11279"/>
		<updated>2025-11-28T12:10:04Z</updated>

		<summary type="html">&lt;p&gt;ChrisGame20: Created page with &amp;quot;{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setTextScale |parameters = float xScale, float yScale |parameter1 = float xScale Horizontal scale factor for the text (0.20) |parameter2 = float yScale Vertical scale factor for the text (0.40) |usage = Sets the horizontal and vertical scale of text drawn on the screen |notes =  - Set the scale in the same frame before calling natives.displayTextWithLiteralString or other text draw functions...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ScriptItem&lt;br /&gt;
|endpoint = client&lt;br /&gt;
|games = iv&lt;br /&gt;
|type = function&lt;br /&gt;
|name = natives.setTextScale&lt;br /&gt;
|parameters = float xScale, float yScale&lt;br /&gt;
|parameter1 = float xScale Horizontal scale factor for the text (0.20)&lt;br /&gt;
|parameter2 = float yScale Vertical scale factor for the text (0.40)&lt;br /&gt;
|usage = Sets the horizontal and vertical scale of text drawn on the screen&lt;br /&gt;
|notes = &lt;br /&gt;
- Set the scale in the same frame before calling [[natives.displayTextWithLiteralString]] or other text draw functions&lt;br /&gt;
- Recommended starting value is 0.20 for visibility; medium sizes are typically 0.20–0.40&lt;br /&gt;
- Larger sizes: 0.50–0.80 (large), &amp;gt;0.80 (extra-large). The engine accepts values above 1.0&lt;br /&gt;
- X and Y are independent: you can stretch or compress text by using different scales&lt;br /&gt;
|return1 = void&lt;br /&gt;
|returnFail1 = void&lt;br /&gt;
|exampleJS = addEventHandler(&amp;quot;OnDrawnHUD&amp;quot;, function() {&lt;br /&gt;
    // Medium readable size&lt;br /&gt;
    natives.setTextScale(0.30, 0.30);&lt;br /&gt;
    natives.setTextFont(0);&lt;br /&gt;
    natives.setTextColour(255, 255, 255, 255);&lt;br /&gt;
    natives.setTextCentre(false);&lt;br /&gt;
    natives.setTextProportional(true);&lt;br /&gt;
    natives.setTextDropshadow(true, 0, 0, 0, 255);&lt;br /&gt;
&lt;br /&gt;
    natives.displayTextWithLiteralString(new Vec2(0.05, 0.10), &amp;quot;STRING&amp;quot;, &amp;quot;Texto visible y de tamaño medio (0.30)&amp;quot;);&lt;br /&gt;
});&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>ChrisGame20</name></author>
	</entry>
</feed>