function main()
while not isSampAvailable() do wait(100) end
while true do
wait(0)
local _, targeted = getCharPlayerIsTargeting(PLAYER_HANDLE)
local result, id = sampGetPlayerIdByCharHandle(targeted)
if result and isKeyJustPressed(0x02) then
sampSendChat('/kiss '..id)
end
end
end