<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.rage.mp/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=J03Y</id>
	<title>RAGE Multiplayer Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.rage.mp/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=J03Y"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/wiki/Special:Contributions/J03Y"/>
	<updated>2026-06-04T09:16:12Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Raycasting::testPointToPoint&amp;diff=11206</id>
		<title>Raycasting::testPointToPoint</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Raycasting::testPointToPoint&amp;diff=11206"/>
		<updated>2018-07-07T14:17:46Z</updated>

		<summary type="html">&lt;p&gt;J03Y: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function casts a ray from Point1 to Point2 and returns the position and entity of what&#039;s in the way, or undefined if the way is cleared.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Flags are intersection bit flags.  They tell the ray what to care about and what not to care about when casting. Passing -1 will intersect with everything, presumably.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Flags:&amp;lt;br&amp;gt;1: Intersect with map&amp;lt;br&amp;gt;2: Intersect with vehicles (used to be mission entities?) (includes train)&amp;lt;br&amp;gt;4: Intersect with peds? (same as 8)&amp;lt;br&amp;gt;8: Intersect with peds? (same as 4)&amp;lt;br&amp;gt;16: Intersect with objects&amp;lt;br&amp;gt;32: Unknown&amp;lt;br&amp;gt;64: Unknown&amp;lt;br&amp;gt;128: Unknown&amp;lt;br&amp;gt;256: Intersect with vegetation (plants, coral. trees not included)&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;NOTE: Raycasts that intersect with mission_entites (flag = 2) has limited range and will not register for far away entites. The range seems to be about 30 metres. &lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;mp.raycasting.testPointToPoint(pos1, pos2, [ignoredEntity], [flags]);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
=== Required Arguments ===&lt;br /&gt;
*&#039;&#039;&#039;pos1:&#039;&#039;&#039; Vector3&lt;br /&gt;
*&#039;&#039;&#039;pos2:&#039;&#039;&#039; Vector3&lt;br /&gt;
*&#039;&#039;&#039;ignoreEntity:&#039;&#039;&#039; Entity handle or object&lt;br /&gt;
*&#039;&#039;&#039;flags:&#039;&#039;&#039; Int&lt;br /&gt;
===Return value===&lt;br /&gt;
*&#039;&#039;&#039;object&#039;&#039;&#039;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;div class=&amp;quot;header&amp;quot; style=&amp;quot;background-color: #408DAE; color: #FFFFFF; border: 2px solid #408DAE;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin: 10px 10px 10px 10px;&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Client-Side&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot; highlight=&amp;quot;5&amp;quot;&amp;gt;&lt;br /&gt;
mp.events.add(&#039;render&#039;, () =&amp;gt; {&lt;br /&gt;
	const startPosition = mp.players.local.getBoneCoords(12844, 0.5, 0, 0);&lt;br /&gt;
	const endPosition = new mp.Vector3(0, 0, 75);&lt;br /&gt;
&lt;br /&gt;
	const hitData = mp.raycasting.testPointToPoint(startPosition, endPosition);&lt;br /&gt;
	if (!hitData) {&lt;br /&gt;
		mp.game.graphics.drawLine(startPosition.x, startPosition.y, startPosition.z, endPosition.x, endPosition.y, endPosition.z, 255, 255, 255, 255); // Is in line of sight&lt;br /&gt;
	} else {&lt;br /&gt;
		mp.game.graphics.drawLine(startPosition.x, startPosition.y, startPosition.z, endPosition.x, endPosition.y, endPosition.z, 255, 0, 0, 255); // Is NOT in line of sight&lt;br /&gt;
	}&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Worldprobe_s_function_c}}&lt;br /&gt;
[[Category:Clientside API]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>J03Y</name></author>
	</entry>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Blip::Blip&amp;diff=10509</id>
		<title>Blip::Blip</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Blip::Blip&amp;diff=10509"/>
		<updated>2018-05-31T13:24:10Z</updated>

		<summary type="html">&lt;p&gt;J03Y: /* Parameters */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Shared}}&lt;br /&gt;
&lt;br /&gt;
Creates a blip to display on your map &amp;amp; minimap.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
mp.blips.new(sprite, position,&lt;br /&gt;
{&lt;br /&gt;
    name: name,&lt;br /&gt;
    scale: scale,&lt;br /&gt;
    color: color,&lt;br /&gt;
    alpha: alpha,&lt;br /&gt;
    drawDistance: drawDistance,&lt;br /&gt;
    shortRange: shortRange,&lt;br /&gt;
    rotation: rotation,&lt;br /&gt;
    dimension: dimension,&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;span style=&amp;quot;font-weight:bold; color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;sprite&#039;&#039;&#039;: {{RageType|Int}} ([[Blips#Blip_model|Blip sprites]])&lt;br /&gt;
*&#039;&#039;&#039;&amp;lt;span style=&amp;quot;font-weight:bold; color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;position&#039;&#039;&#039;: {{RageType|Vector3}}&lt;br /&gt;
*&#039;&#039;&#039;name&#039;&#039;&#039;: {{RageType|String}}&lt;br /&gt;
*&#039;&#039;&#039;scale&#039;&#039;&#039;: {{RageType|Float}}&lt;br /&gt;
*&#039;&#039;&#039;color&#039;&#039;&#039;: {{RageType|Color ID}} ([[Blips#Blip_colors|Blip colors]])&lt;br /&gt;
*&#039;&#039;&#039;alpha&#039;&#039;&#039;: {{RageType|Int}} [0:255]&lt;br /&gt;
*&#039;&#039;&#039;drawDistance&#039;&#039;&#039;: {{RageType|Float}}&lt;br /&gt;
*&#039;&#039;&#039;shortRange&#039;&#039;&#039;: {{RageType|Boolean}}: Auto-hide on the minimap&lt;br /&gt;
*&#039;&#039;&#039;rotation&#039;&#039;&#039;: {{RageType|Float}}&lt;br /&gt;
*&#039;&#039;&#039;dimension&#039;&#039;&#039;: {{RageType|Int}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;font-weight:bold; color:red;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt; = Required&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
This creates a blip at the police station. The blip is assigned to the variable &#039;&#039;&#039;policeBlip&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
let policeBlip = mp.blips.new(60, new mp.Vector3(427.95, -981.05, 0),&lt;br /&gt;
    {&lt;br /&gt;
        name: &#039;Los Santos Police Station&#039;,&lt;br /&gt;
        color: 3,&lt;br /&gt;
        shortRange: true,&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
{{Blip_definition}}&lt;/div&gt;</summary>
		<author><name>J03Y</name></author>
	</entry>
</feed>