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)

Last updated