function getPlayerIcons(name, player, forTopHUD, distance) distance = distance or 0 local tinted, masked = false, false local icons = {} if not forTopHUD then --ADMIN / GM TAGS if getElementData(player,"hiddenadmin") ~= 1 then if getElementData(player,"duty_admin") == 1 then -- and getElementData(player, "admin_level") <= 5 if exports.integration:isPlayerLeadScripter(player) and getElementData(player, "admin_level") == 10 then table.insert(icons, "scr_on") elseif exports.integration:isPlayerDeveloper(player) and getElementData(player, "admin_level") == 7 then table.insert(icons, "developeradm") elseif exports.integration:isPlayerTrialAdmin(player) and getElementData(player, "admin_level") == 5 then table.insert(icons, "adm_on") end end if exports.integration:isPlayerSupporter(player) and getElementData(player,"duty_supporter") == 1 then table.insert(icons, 'gm') end end -- DONATOR NAMETAGS if getElementData(player, "donation:nametag") and getElementData(player, "nametag_on") then table.insert(icons, 'donor') end -- AFK if getElementData(player, "afk") then table.insert(icons, "afk") end end for key, value in pairs(masks) do if getElementData(player, value[1]) then table.insert(icons, value[1]) if value[4] then masked = true end end end if getElementData(player, "gloves") then table.insert(icons, "gloves") end local vehicle = getPedOccupiedVehicle(player) local windowsDown = vehicle and getElementData(vehicle, "vehicle:windowstat") == 1 if vehicle and not windowsDown and vehicle ~= getPedOccupiedVehicle(localPlayer) and getElementData(vehicle, "tinted") then local seat0 = getVehicleOccupant(vehicle, 0) == player local seat1 = getVehicleOccupant(vehicle, 1) == player --outputDebugString(toJSON(seat0, seat1)) local chrid = getElementData(player, 'dbid') if seat0 or seat1 then if distance > 1.4 then name = "Belirsiz Kişi (#"..chrid..")" tinted = true end else name = "Belirsiz Kişi (#"..chrid..")" tinted = true end end if not tinted then -- pretty damn hard to see thru tint local veh = getPedOccupiedVehicle(player) if getElementData(player,"seatbelt") and veh and getVehicleType(veh) ~= "Bike" then table.insert(icons, 'seatbelt') end if getElementData(player,"smoking") then table.insert(icons, 'cigarette') end if masked then name = "Gizli (#"..getElementData(player, "dbid")..")" end for k, v in pairs(badges) do local title = getElementData(player, k) if title then if v[5] then table.insert(icons, 'bandana') name = "Unknown Person (Bandana)" badge = true else table.insert(icons, "badge" .. tostring(v[4] < 3 and v[4] or 1)) name = title .. "\n" .. name badge = true end end end if tonumber(getElementData(player, 'cellphoneGUIStateSynced') or 0) > 0 then table.insert(icons, 'phone') end if not forTopHUD then local health = getElementHealth( player ) local tick = math.floor(getTickCount () / 1000) % 2 if health <= 10 and tick == 0 then table.insert(icons, 'bleeding') elseif (health <= 30) then table.insert(icons, 'lowhp') end if getElementData(player, "restrain") == 1 then table.insert(icons, "handcuffs") end if getElementData(player, "blindfold") == 1 then table.insert(icons, "blindfold") end end if getPedArmor( player ) > 50 and getPedArmor( player ) < 76 then table.insert(icons, 'armour') elseif getPedArmor( player ) > 75 then table.insert(icons, 'armour2') end end if not forTopHUD then if windowsDown then table.insert(icons, 'window2') end end return name, icons, tinted end