Client
Options for Exports and their usage on the Client Side
ATTENTION
EXPORT TYPES
[1] <-> exports['lb_vips']:isVIP() -- isVIP() returns TRUE or FALSE
[2] <-> exports['lb_vips']:vipLevel() -- vipLevel() returns a table with 2 values (level and label) --> level is the number of the level and label is the name of the levelEXAMPLES
RegisterCommand('testVIP',function()
local vip = exports['lb_vips']:isVIP()
local levelData = exports['lb_vips']:vipLevel()
if vip then
print('VIP active')
print('You\'re VIP with level: '..levelData.level..'!') --> Result: You're VIP with level: 3!
print('You\'re '..levelData.label) --> Result: You're VIP Diamond
else
print('Not VIP')
end
end)Last updated