📦 Scripts
🎁 Akilla Donator
Commands & Exports
Client Exports

📤 Client Exports

Exports available for client-side scripts.

OpenStore

Opens the donator store UI.

exports['akilla-donator']:OpenStore()

CloseStore

Closes the donator store UI.

exports['akilla-donator']:CloseStore()

IsStoreOpen

Check if the store is currently open.

local isOpen = exports['akilla-donator']:IsStoreOpen()
if isOpen then
    print('Store is open')
end

IsOnTestDrive

Check if the player is on a test drive.

local onTestDrive = exports['akilla-donator']:IsOnTestDrive()
if onTestDrive then
    print('Player is test driving')
end

EndTestDrive

End the current test drive early.

exports['akilla-donator']:EndTestDrive()

Example Usage

Custom Store Trigger

-- client.lua
RegisterCommand('openstore', function()
    exports['akilla-donator']:OpenStore()
end)

Prevent Actions During Test Drive

-- client.lua
AddEventHandler('someEvent', function()
    if exports['akilla-donator']:IsOnTestDrive() then
        -- Cancel action
        return
    end
    -- Continue with action
end)