getVip - The first one is for getting player VIP status
local xPlayer = ESX.GetPlayerFromId(source)
local vip = exports.fz_dashboard:getVip(xPlayer) -- YOU NEED TO GIVE AN XPLAYER
--Returned content if the player has VIP
-- { rank, title, endDate , canAccessExc -- String, string, timestamp, boolean
-- If the player doesn't have VIP
-- nil
if vip ~= nil then
print("This is the rank id " ..vip.rank)
print("This is the title(label): ".. vip.title)
print("It ends on: " ..vip.endDate)
if vip.canAccessExc then
print("The player has access to the VIP shop")
else
print("The player doesn't have access to the VIP shop")
else
print("The player doesn't have a VIP")
end
generatePlate - This generates plate in the format you setted in the dashboard.
local plate = exports.fz_dashboard:GeneratePlate
print("The generated plate is: " .. plate) -- It never gives an already existing plate.