function main()
while not isSampAvailable() do wait(0) end
while true do wait(0)
if isKeyDown(2) and isKeyJustPressed(49) then
result, ped = getCharPlayerIsTargeting(PLAYER_PED)
if result then
r, i = sampGetPlayerIdByCharHandle(ped)
if r then
sampSendChat('/showpass '..i)
end
end
end
end
end