ShowSimpleMessage

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

Creates a text in the middle of the screen.

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

API.showSimpleMessage(string title, string message, int time = 5000);

Required Arguments

  • title parameter input should be in string type.
  • message parameter input should be in string type.


Optional Arguments

  • time parameter input should be in int type.

Usage example

In Javascript
Client-Side Function

API.showSimpleMessage("Simple Message", "This is a simple message.");

SimpleMessageExample.jpg

References