Script::hasScriptLoaded: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
Line 1: Line 1:
Returns if a script has been loaded into the game. Used to see if a script was loaded after requesting.<br><br>For a full list, see here: pastebin.com/yLNWicUi
Returns if a script has been loaded into the game. Used to see if a script was loaded after requesting.<br><br>For a full list, see here: pastebin.com/yLNWicUi
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">script.hasScriptLoaded(scriptName);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.script.hasScriptLoaded(scriptName);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''scriptName:''' String
*'''scriptName:''' String
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Script_function_c}}
{{Script_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 21:31, 6 May 2017

Returns if a script has been loaded into the game. Used to see if a script was loaded after requesting.

For a full list, see here: pastebin.com/yLNWicUi

Syntax

mp.game.script.hasScriptLoaded(scriptName);

Required Arguments

  • scriptName: String

Return value

  • Boolean

Example

// todo

See also

Template:Script s function c