📥Exports
Configuration guide of Driving School.
Client Exports
hasLicense
local hasB = exports['stg-drivingschool']:hasLicense('drive_b')
if hasB then
print("he have!")
else
print("he haven't")
endReturns whether the player has the specified license or not as true or false.
addLicense
local addLicense = exports['stg-drivingschool']:addLicense(licenseName)
if addLicense then
print("added license!")
else
print("he already have this license.")
endAdds a license to the local player. Returns true if added successfully, false if player already has it.
removeLicense
local addLicense = exports['stg-drivingschool']:removeLicense(licenseName)
if addLicense then
print("Removed license!")
else
print("he already dont have this license.")
endRemoves a license from the local player. Returns true if removed successfully, false if player doesn't have it.
Server Exports
hasLicense
local hasB = exports['stg-drivingschool']:hasLicense(source, 'drive_b')
if hasB then
print("he have!")
else
print("he haven't")
endReturns whether the player has the specified license or not as true or false.
Last updated