Documentation

Want to improve the docs? Take a look at scripting-api-data!
Found a bug? jc3mp/bugs is a good place to let us know.

Argument

Constructible This class can be instantiated from your script. You can find more information on the Constructor below. Auto Destroy Instances of this class will be deleted automatically. Custom Properties You cannot add your own properties to instances of this class. They will not be saved and can cause undefined behavior.

Represents an argument(flag) that has been passed to the server (-name=value)

Constructor

new Argument(string key, string value)

  • key: optional Argument key
  • value: optional Argument value

Example

var argument = new Argument();

Properties

Name Type Description
key string Argument name
value string Argument value

Functions

This class does not have any functions.

Stay informed

By becoming the newest member of our growing forums, we and hundreds of other players will always keep you up to date on everything JC3:MP related.