Skip to content

Commit 6c2e19f

Browse files
authored
Update client.lua
1 parent 402b0ac commit 6c2e19f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

client/client.lua

+3
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,8 @@ Citizen.CreateThread(function()
442442
end)
443443

444444
function DrawText3D(x, y, z, text, state)
445+
local ismapact = IsAppActive(`MAP`)
446+
if ismapact == 0 then
445447
local onScreen, _x, _y = GetScreenCoordFromWorldCoord(x, y, z)
446448
local px, py, pz = table.unpack(GetGameplayCamCoord())
447449
SetTextScale(0.35, 0.35)
@@ -455,6 +457,7 @@ function DrawText3D(x, y, z, text, state)
455457
else
456458
DrawSprite("inventory_items", "consumable_lock_breaker", _x, _y + 0.0125, 0.04, 0.05, 0.1, 1, 255, 1, 255, 0)
457459
end
460+
end
458461
end
459462

460463
function OpenDoors(entity1, coords)

0 commit comments

Comments
 (0)