AddWhitelistURL

From GT-MP
Jump to: navigation, search
AddWhitelistURL
Server-Side Function
Utilities-terminal.png Server-Side Csharp.png C#

Adds an Domain (HTTP or HTTPS) to the whitelist of the gamemode. External CEF-pages that start with a whitelisted URL can use browser.call / resourceCall. Eval stays disabled for external pages.

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 C#
Server-Side Function

API.addWhitelistURL(string url);

Required Arguments

  • url parameter input should be in string type.

Usage example

In C#
Server-Side Function

API.addWhitelistURL(string url);

References