Exports & How to use
Client Exports / Triggers
Export
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
