Citizen.CreateThread(function()
TriggerServerEvent("esx_showid:add-id")
while true do
Citizen.Wait(1)
if IsControlPressed(0, esx_showid.key) or forceDraw then
for k, v in pairs(GetNeareastPlayers()) do
local ped = GetPlayerPed(-1)
if IsPedArmed(ped, 4) then
Citizen.Wait(100)
TriggerEvent('notification', 'ID görmek için elinden silahını bırakman gerek', 1)
Citizen.Wait(5000)
else
local x, y, z = table.unpack(v.coords)
Draw3DText(x, y, z + 1.1, v.playerId, 1.6)
Draw3DText(x, y, z + 1.20, v.topText, 1.0)
end
end
end
end
end)