Skip to content

LabScripts/lab-TextUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

lab-TextUI

alt text

Lab Scripts | Dogo#1950

You can use this resource by the following exports:

● | Show:

exports['lab-TextUI']:Show('Example Text')

● | Hide:

exports['lab-TextUI']:Hide()

Example Usage:

Citizen.CreateThread(function()
    local inZone = false
    local enteredZone = false
    while true do
        inZone = false
        local sleep = 1000
        local ped = PlayerPedId()
	      local pedCoords = GetEntityCoords(ped)
            
        if #(pedCoords - Config.Coords) < 3 then
           sleep = 5
           inZone = true
           if IsControlJustReleased(0, 38) then                   
              OpenAuctionMenu()
           end
        end

        if not enteredZone and inZone then
            exports['lab-TextUI']:Show('Black Market Auctions')
            enteredZone = true
        elseif enteredZone and not inZone then
            exports['lab-TextUI']:Hide()
            enteredZone = false
        end

    Citizen.Wait(sleep)
    end
end)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published