❤️
FinalZ Scripts
  • Welcome here!
    • ❓How to install
    • FinalZ discord
  • 💲FinalZ Paid
    • 🌱FinalZ-drugSystem
      • 📦Database
    • 🛒FinalZ-Marketplace
      • 📦Config
      • 📦Database
    • 🚗FinalZ-vehicleRent
      • 📦Config
      • 📦database
    • 🔫FinalZ-NPCRobbery
      • 📦Config
    • 🎃FinalZ Dashboard
      • 📦How to set up the discord bot
      • 📦exports
  • 🆓FINALZ FREE
    • 🐟FinalZ-Fishing
      • 👣items
      • 📦Config
    • 👷FinalZ-jobCenter
      • 📦Config
    • 🚘FinalZ-Garagesystem
      • 📦exports
Powered by GitBook
On this page
  • getVip - The first one is for getting player VIP status
  • generatePlate - This generates plate in the format you setted in the dashboard.
  1. FinalZ Paid
  2. FinalZ Dashboard

exports

I made some exports to the script

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.

PreviousHow to set up the discord botNextFinalZ-Fishing

Last updated 5 months ago

💲
🎃
📦