
🧠How to Install
FiveStar Script
Requirements
Before starting, make sure you have the latest version of oxmysql Script installed on your server
Insert SQL
Insert the database.sql file to your SQL server
Tebex Shop
Create a tebex shop for yourself
You can use the following tutorials
Tebex Secret
You need to create a tebex key for the api script to work | Link
Placing subscribe properties on server scripts
For this purpose, in each script, you must check that the person has subscribed [Gold or Silver or Bronze]
exports['FiveStar-Subscribe']:CheckSubscribe(ID, SubscribeName)
The first argument of the player id must be entered and the second argument must be the name subscribe
[Example]:
-- ? server side
RegisterCommand("testsub", function(source)
local src = source
local sub = exports['FiveStar-Subscribe']:CheckSubscribe(src, "Gold") -- arg 2 [Gold or Silver or Bronze] | You can only export from the server side
if type(sub) == "table" then
print("identifier: "..sub.identifier)
print("TBX code: "..sub.tbx)
print("Active: "..sub.active)
print("category: "..sub.category)
print("TimeStamp Expaire: "..sub.time)
else
TriggerClientEvent('esx:showNotification', src, 'You do not have a subscription')
end
end)
Add License
Please put your license in server/license.lua
| If your script is encrypted, enter your license
Last updated
Was this helpful?