Redutzu's Scripts
  • â„šī¸Information
  • 🛒Store
  • đŸ’ģDiscord
  • 📚Resources
    • Redutzu MDT
      • Installation
      • Guides
        • Frameworks
        • Items
        • Localization
        • Images
        • Logs
        • Permissions
        • Bodycam
      • Exports/Events
        • Server Events
          • addDispatchToMDT
        • Server Exports
          • Incidents
          • Evidences
          • Warrants
          • Bolos
          • Citizens
          • Vehicles
          • Codes
          • Charges
          • Weapons
          • Announcements
          • Tags
        • Client Events
          • Open/Close MDT
        • Client Exports
      • Common Issues
    • Redutzu EMS
      • Installation
      • Guides
      • Exports
    • Redutzu Documents
      • Installation
      • Guides
      • Exports
Powered by GitBook
On this page

Was this helpful?

  1. Resources
  2. Redutzu MDT
  3. Exports/Events

Client Exports

Here, you'll find useful client-side exports for this asset. Take your time to understand each step and example to see how they work. We recommend these exports for experienced developers.


isOpened

This export returns whether the player has the MDT opened.

exports['redutzu-mdt']:isOpened()

Here's how you can utilize this export:

CreateThread(function()
    while true do
        if IsControlJustReleased(0, 38) then
            local opened = exports['redutzu-mdt']:isOpened()

            if opened then
                -- do something if the player pressed "E" and he is using the MDT
            end
        end

        Wait(5)
    end
end)
PreviousOpen/Close MDTNextCommon Issues

Last updated 11 months ago

Was this helpful?

📚