press x to kiss

Shuvi

Участник
Автор темы
172
14
ну типо целует чела на против на кнопочку X
поискал не нашел мб у вас получится найти
 
Решение
изменил команду, пкм на педа + х

Lua:
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

woodware

Потрачен
Проверенный
5,060
1,467
изменил команду, пкм на педа + х

Lua:
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
 
  • Влюблен
Реакции: Shuvi

Shuvi

Участник
Автор темы
172
14
изменил команду, пкм на педа + х

Lua:
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
лучш <3 потом проверю