Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

Guide OkokTextUI - How to display?

Zan1456

Zan#1456
VIP
Joined
Mar 19, 2021
Messages
786
Solutions
5
Reaction score
88,222
Points
421
Location
Hungary
Website
vfivem.com
Displaying:
Code:
exports['okokTextUI']:Open('[Key] Message', 'color', 'position')

Hiding:
Code:
exports['okokTextUI']:Close()

Positions:
    • right;
    • left.
Colors:
    • lightblue / darkblue;
    • lightgreen / darkgreen;
    • lightred / darkred;
    • lightgrey / darkgrey.

Usage example​

Before:
Code:
while true do
    -- your code
    if playerDistance <= distance then
        -- your code when you are inside the range
    else
        -- your code when you are outside the range
    end
end

After:
Code:
local shown = false
local inDistance = false


while true do
    inDistance = false
    -- your code
    if playerDistance <= distance then
        inDistance = true
        -- your code when you are inside the range
    else
        -- your code when you are outside the range
    end


    if not shown and inDistance then
        exports['okokTextUI']:Open('[E] Hello', 'lightgreen', 'right')
        shown = true
    elseif shown and not inDistance then
        exports['okokTextUI']:Close()
        shown = false
    end
end
 
Top