Brutal Scripts
YouTubeDiscordStore
  • 🙉About Us
  • ↗️Translate
  • Informations
    • 🔒Escrow System
    • 🔥Common Problems
  • Scripts
    • 📄Notify
      • Accessible files
      • Installation guide
    • 🔠Text-UI
      • Installation guide
      • Exports & How to use
      • Integrations
    • 🤟Gangs
      • Accessible files
      • Installation guide
      • exports / triggers
      • Create a new gang
    • 🏡Housing
      • Accessible files
      • Installation guide
      • exports / triggers
    • 🔑Keys
      • Accessible files
      • Installation guide
      • exports / triggers
    • 💥Gang Actions
      • Accessible files
      • Installation guide
      • exports / triggers
      • Controlling the menu
    • ⭕Radial
      • Accessible files
      • Installation guide
      • Adding new buttons
    • 🎯Executions
      • Accessible files
      • Installation guide
      • exports / triggers
    • 🐶Pets + K9 V2
      • Accessible files
      • Installation guide
    • 👮Police Job
      • Accessible files
      • Installation guide
      • exports / triggers
    • 🚑Ambulance Job
      • Accessible files
      • Installation guide
      • exports / triggers
    • 🔧Mechanic Job
      • Accessible files
      • Installation guide
      • exports / triggers
    • 💪GYM with Skills V2
      • Accessible files
      • Installation guide
      • exports / triggers
    • 🔫Paintball
      • Accessible files
      • Installation guide
      • exports / triggers
    • 🥊Boxing
      • Accessible files
      • Installation guide
      • exports / triggers
    • 🔨Crafting
      • Accessible files
      • Installation guide
      • Creating a new crafting table
    • 🏦Banking
      • Accessible files
      • Installation guide
      • Paycheck transactions
      • Registering transactions
    • 🎳Bowling
      • Accessible files
      • Installation guide
      • exports / triggers
    • 🦌Hunting
      • Accessible files
      • Installation guide
    • 🏁Racing Script
      • Accessible files
      • Installation guide
    • 🐛Reports
      • Accessible files
      • Installation guide
    • 🛒Shop Robbery
      • Accessible files
      • Installation guide
    • 🛥️Yacht Heist
      • Accessible files
      • Installation guide
    • 🧾Billing
      • Accessible files
      • Installation guide
      • Triggers
    • 💰Truck Robbery
      • Accessible files
      • Installation guide
    • 🏧Atm Robbery
      • Accessible files
      • Installation guide
    • 👶Baby script
      • Installation guide
      • How to add more babys
  • Others
    • Register Key Mapping
    • Drill Minigame
    • Discord Webhook
Powered by GitBook
On this page
  • Client Exports / Triggers
  • How to use?!

Was this helpful?

  1. Scripts
  2. Text-UI

Exports & How to use

Client Exports / Triggers

Export

exports['brutal_textui']:Open(message, color, thema, position)

Open export

exports['brutal_textui']:Close()

Close export

  • Message - Text of the message - The message must include a box with the key/control: [E] or [G] or [CTRL] or what you want to write in the box. For example: "[E] Open the menu", "Open the menu [F6]". No matter where you type within the code.

  • Color - blue / red / green / yellow / purple / orange / gray | custom can be added in the config.lua

  • Thema - Between 1-4.

  • Position - left / right

How to use?!

local shown = false
local inDistance = false

Citizen.CreateThread(function()
    while true do
        inDistance = false
        
        local playerCoords = GetEntityCoords(GetPlayerPed(-1))
		if #(playerCoords- v.coords) < 50.0 then
			DrawMarker(20, v.coords, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3, 0.2, 0.2, 15, 100, 210, 255, false, true, 2, true, nil, false)

			if #(playerCoords- v.coords) < 2.0 then
				inDistance = true

				if not shown then
					shown = true
					exports['brutal_textui']:Open("[E] Open the Menu", "green", 1, "left")
				end
			end
		end

        if shown and not inDistance then
            exports['brutal_textui']:Close()
            shown = false
        end

        Citizen.Wait(1)
    end
end)

PreviousInstallation guideNextIntegrations

Last updated 9 months ago

Was this helpful?

🔠
Page cover image