OnWhitelistAccepted: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Event|Client|1.4.2}} {{FuncDescription|This function is called once the player has accepted the whitelist request.}} {{FuncSyntax|OnWhitelistAccepted(domains)}} {{Fun...")
 
(No difference)

Latest revision as of 10:40, 22 January 2021

OnWhitelistAccepted

Type: Event
Context: Client
Introduced: v1.4.2

Description

This function is called once the player has accepted the whitelist request.

Syntax

OnWhitelistAccepted(domains)
  • domains
    A table containing the domains which the player allowed.

Example

AddEvent("OnWhitelistAccepted", function(domains)
    AddPlayerChat("The following domains have been whitelisted:")
    for _, v in pairs(domains) do
        AddPlayerChat(v)
    end
end)

See also