CreateMenulessInstructionalButton

From GT-MP
Jump to: navigation, search
CreateMenulessInstructionalButton
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript

Creates a menuless instructional button.

Dialog-warning.png Note: This feature is currently not in the API, or is currently not accurate on the wiki due to upcoming API changes. New API functions and changes will be released with the next update.

Syntax

In Javascript
Client-Side Function

Overload 1:

API.createMenulessInstructionalButton(int slot, int control, string text);

Required Arguments

  • slot parameter input should be in int type.
  • control parameter input should be in int type. See Game Controls.
  • text parameter input should be in string type.


Overload 2:

API.createMenulessInstructionalButton(int slot, string control, string text);

Required Arguments

  • slot parameter input should be in int type.
  • control parameter input should be in string type.
  • text parameter input should be in string type.


NOTE: This function returns data in ScaleformInstructionalButton type.

Usage example

In Javascript
Client-Side Function

API.createMenulessInstructionalButton(int slot, int control, string text);
API.createMenulessInstructionalButton(int slot, string control, string text);

MenulessInstructionalButtonExample.png

References