Server Function Template: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "{{ServerSide}} == Description == This is an example description for a server-side function template. == Syntax == <syntaxhighlight lang="javascript"> mp.examples.func(arg1...")
 
No edit summary
Line 18: Line 18:
=== Returned Values ===  
=== Returned Values ===  


* '''True''' if function has been executed successfully.
* <span style="color: #408DAE"><b>true</b></span>: if the example function has been executed successfully.
* '''False''' otherwise.
* <span style="color: #408DAE"><b>false</b></span>: otherwise.


== Examples ==
== Examples ==

Revision as of 22:19, 4 February 2018

Server-Side

Description

This is an example description for a server-side function template.

Syntax

mp.examples.func(arg1, arg2, arg3);

Parameters

  • arg1: Explanation of example argument, parameter should be in string type.
  • arg2: Explanation of second example argument, parameter should be in int type.
  • arg3: Explanation of third example argument, parameter should be in double type.

Returned Values

  • true: if the example function has been executed successfully.
  • false: otherwise.

Examples

This is a basic explanation about what does the example below do.

let return = mp.examples.func("George", 1, 2.0);

See Also