OnWhitelistAccepted

From Onset Developer Wiki
Revision as of 10:40, 22 January 2021 by BlueMountains (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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