esx_textui

MLO-uri, interioare, hărți optimizate și asset-uri pentru stream.
Post Reply
User avatar
greenie
Full Member
Full Member
Posts: 4444
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Da

esx_textui

Post by greenie »

The text ui (hud) system used by es_extended Only available on clientside

TextUI
This function will show a text ui pop up.

Arguments

message: string
The TextUI message.
TextUI types

success
error
info
ESX.TextUI('Press [E] to use', 'error')
Export Example

exports['esx_textui']:TextUI('Press [E] to use', 'error')

HideUI
This function will hide the TextUI.

This will close any TextUI that is currently open.

ESX Example
local interactCoords = vector3(0, 0, 0)
CreateThread(function()
local TextUI
while true do
local coords = GetEntityCoords(PlayerPedId())
local inDist = #(coords - interactCoords) < 2.0
if inDist and not TextUI then
ESX.TextUI('Press [E] to interact')
elseif inDist and TextUI then
ESX.HideUI()
end
Wait(500)
end
end)
Export Example
local interactCoords = vector3(0, 0, 0)
CreateThread(function()
local TextUI
while true do
local coords = GetEntityCoords(PlayerPedId())
local inDist = #(coords - interactCoords) < 2.0
if inDist and not TextUI then
exports['esx_textui']:TextUI('Press [E] to interact')
elseif inDist and TextUI then
exports['esx_textui']:HideUI()
end
Wait(500)
end
end)
𝑴𝒂𝒚𝒃𝒆 𝒕𝒉𝒆 𝑬𝒂𝒓𝒕𝒉 𝒊𝒔 𝒕𝒉𝒆 𝑯𝒆𝒍𝒍 𝒐𝒇 𝑨𝒏𝒐𝒕𝒉𝒆𝒓 𝑷𝒍𝒂𝒏𝒆𝒕... ☢️

✅ GAZDUIRE JOCURI / VPS / GAZDUIRE WEB / SERVERE DEDICATE - Stock NELIMITAT / Valabil comandati pe https://www.zonek.ro/
Post Reply

Return to “Server Resources”