Ui::getLengthOfLiteralString: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Returns the length of the string passed (much like strlen).
Returns the length of the string passed (much like strlen).
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">ui.getLengthOfLiteralString(string);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.ui.getLengthOfLiteralString(string);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''string:''' String
*'''string:''' String
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Ui_function_c}}
{{Ui_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:UI API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 15:01, 20 May 2017

Returns the length of the string passed (much like strlen).

Syntax

mp.game.ui.getLengthOfLiteralString(string);

Required Arguments

  • string: String

Return value

  • int

Example

// todo

See also