Server

Exports - Serverside

isPlayerNew

Check if the Player is whitelisted or not.

Parameters playerId - number - The ServerId of the player

Returns isWhitelisted - boolean - whether the player is whitelistet or not

local isWhitelisted = exports.msk_whitelist:isPlayerNew(playerId)

whitelistPlayer

Whitelist a Player.

Parameters playerId - number - The ServerId of the player who whitelist someone - Optional targetData - table - PlayerData of the player who was whitelisted

exports.msk_whitelist:whitelistPlayer(playerId, targetData)

-- If Server whitelisted the player
exports.msk_whitelist:whitelistPlayer(nil, targetData)

-- targetData
{source = targetId}
{identifier = targetIdentifier}

-- Examples
exports.msk_whitelist:whitelistPlayer(playerId, {source = 1}) 
exports.msk_whitelist:whitelistPlayer(playerId, {identifier = 'char1:83556bdis9d7sj3'})

Last updated