Open Laptop UI

💻 openLaptopUI

Description

Opens the Kartik Laptop UI for the player. This function automatically sets the NUI focus and prepares the laptop interface for interaction.

Usage

exports['kartik-laptop']:openLaptopUI()

Behavior

  • Checks if the UI is already open (prevents reopening).

  • Enables NUI focus and displays the main laptop UI.

Returns

Type
Description

nil

This export does not return a value.

Example

RegisterCommand("laptop", function()
    exports['kartik-laptop']:openLaptopUI()
end)

Notes

  • This export is safe to call from client-side scripts only.

  • It automatically prevents duplicate UI openings if the laptop is already active.

Last updated