TXOS - FiveM Scripts Documentation
STOREDISCORD
  • TXOS Documentation
  • DEPENDENCY
    • TXOS Lib
      • Dependencies
      • Installation
      • Configuration
      • Open methods
      • Framework customization
  • Resources
    • TXOS Armory
      • Dependencies
      • Installation
      • Configuration
      • Open methods
      • Exports / Events
    • TXOS Badge
      • Dependencies
      • Installation
      • Configuration
      • Open methods
      • Exports / Events
    • TXOS Jewel
      • Dependencies
      • Installation
      • Configuration
      • Open methods
      • Exports / Events
    • TXOS Trucking
      • Dependencies
      • Installation
      • Configuration
      • Open methods
      • Exports / Events
    • TXOS Esc
      • Dependencies
      • Installation
      • Configuration
      • Open methods
      • Exports / Events
Powered by GitBook
On this page
  1. DEPENDENCY
  2. TXOS Lib

Open methods

We have some open methods on the client of the lib, here you can change some things like the help text and notifications used by the lib.

OpenMethods = {}

function OpenMethods.hideCustomHelpText()
    -- Your method for hiding your custom help text
end

function OpenMethods.showCustomHelpText(text)
    -- Your method for hiding your custom help text
end

-- If you use a custom notification library, make sure to check client/config.lua > NotificationMapping
function OpenMethods.ShowNotification(message, notify_type)
    -- Your method for showing a notification

    -- This is just default gta notification
    SetNotificationTextEntry("STRING")
    AddTextComponentString(message)
    DrawNotification(false, false)
end

This resource doesn't contain any open methods on the server!

PreviousConfigurationNextFramework customization

Last updated 5 months ago