require "lib.moonloader"
function main()
while not isSampAvailable() do wait(100) end
while true do wait(0)
local valid, ped = getCharPlayerIsTargeting(PLAYER_HANDLE)
if valid and doesCharExist(ped) then
local result, id = sampGetPlayerIdByCharHandle(ped)
if result and isKeyJustPressed(VK_X) then
sampSendChat(string.format("/kiss %s", id))
end
end
end
end