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)
Last updated
Was this helpful?