World::requireIpl: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "'''Function''': Require an IPL and sync it to every client. ==Example== {{ServerSide}} <syntaxhighlight lang="javascript"> mp.world.requestIpl("gr_case10_bunkerclosed"); </sy...")
 
No edit summary
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
'''Function''': Require an IPL and sync it to every client.
__TOC__
 
{{ServersideJsFunction}}
 
This function require an IPL and sync it to every client.
 
{{JSContainer|
== Syntax ==
<pre>mp.world.requestIpl(ipl);</pre>
 
== Required Arguments ==
* {{Required}}'''ipl''': {{RageType|String}} ([[Interiors_and_Locations|IPLs]])


==Example==
==Example==
{{ServerSide}}
{{ServersideCode|
<syntaxhighlight lang="javascript">
<pre>
mp.world.requestIpl("gr_case10_bunkerclosed");
mp.world.requestIpl("gr_case10_bunkerclosed"); // THIS ADDS THE BUNKER ENTRANCE NEAR ZANCUDO. POSITION: (-3058.714, 3329.19, 12.5844)
</syntaxhighlight>
</pre>
Add the bunker entrance near Zancudo. Position: (-3058.714, 3329.19, 12.5844)
}}
}}
 
==See Also==
{{World_definition}}

Latest revision as of 20:03, 30 October 2020

Server-Side
Function

 JavaScript



This function require an IPL and sync it to every client.

JavaScript Syntax

Syntax

mp.world.requestIpl(ipl);

Required Arguments

Example

Server-Side
mp.world.requestIpl("gr_case10_bunkerclosed"); // THIS ADDS THE BUNKER ENTRANCE NEAR ZANCUDO. POSITION: (-3058.714, 3329.19, 12.5844)


See Also