This export is used to send a request to create a VIP Code directly to the database. It needs to be associated with a Steam ID, License, VIP Code and VIP.
function CreateNewVIPCode(steamId, license, vipcode, viptype)
local src = source
exports['ug-vipsystem']:CreateVIPCode(src, steamId, license, vipcode, viptype)
print("Created VIP Code with the code " .. vipcode .. "!")
end
Returns:
None
Delete VIP Code
This export is used to send a request to delete a VIP Code. This is used when a player activates the VIP. This is used for security and obvious reasons.
function GetPlayerSteamID(source)
local src = source
local steamId = exports['ug-vipsystem']:GetPlayerIdentifier(src, "steam") -- Returns the Steam ID
return steamId
end)
function GetPlayerLicense(source)
local src = source
local license = exports['ug-vipsystem']:GetPlayerIdentifier(src, "license") -- Returns the Steam ID
return license
end)
Returns:
String: type of the ID (Steam, License, ...)
Is Player Admin
This export is used to check if a player is actually an admin and has access to ug-vipsystem's admin menu.
Usage:
exports['ug-vipsystem']:IsPlayerAdmin(id: String)
Example:
function IsPlayerVIPSystemAdmin(id)
return exports['ug-vipsystem']:IsPlayerAdmin(id)
end