function isNameTagVisible(slot0)
slot3 = false
slot6, slot7 = sampGetCharHandleBySampPlayerId(slot0)
if slot6 and isCharOnScreen(slot7) then
slot8, slot9, slot10 = function (slot0, slot1)
slot2 = require("ffi")
slot5 = slot2.new("float[3]")
slot2.cast("int (__thiscall*)(void*, float*, int, bool)", 6177408)(slot2.cast("void*", getCharPointer(slot1)), slot5, slot0, true)
return slot5[0], slot5[1], slot5[2]
end(8, slot7)
slot11, slot12, slot13 = getActiveCameraCoordinates()
if isLineOfSightClear(slot8, slot9, slot10, slot11, slot12, slot13, true, false, false, true, false) and math.sqrt((slot11 - slot8)^2 + (slot12 - slot9)^2 + (slot13 - slot10)^2) <= representIntAsFloat(readMemory(sampGetServerSettingsPtr() + 39, 4, false)) and function (slot0)
if getStructElement(readMemory(sampGetPlayerStructPtr(slot0), 4, true), 179, 2, false) == 0 then
return false
else
return true
end
end(slot0) then
slot3 = true
end
end
return slot3
end