Help me setCharCoordinates

Hossi_Bad

Участник
Автор темы
80
24
Hello
In the following script, I want it to pause for 10 seconds after each set of Char Coordinates, then teleport to the next Coord.

Thank you for helping me..

function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand('narangi', job)
wait(-1)
end

function job()
setCharCoordinates(PLAYER_PED, -2390.457, -325.112, 65.499)
setCharCoordinates(PLAYER_PED, -2385.841, -330.648, 65.813)
setCharCoordinates(PLAYER_PED, -2392.046, -339.928, 65.930)
end
 

Special Force

Потрачен
43
7
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Hello
In the following script, I want it to pause for 10 seconds after each set of Char Coordinates, then teleport to the next Coord.

Thank you for helping me..

function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand('narangi', job)
wait(-1)
end

function job()
setCharCoordinates(PLAYER_PED, -2390.457, -325.112, 65.499)
setCharCoordinates(PLAYER_PED, -2385.841, -330.648, 65.813)
setCharCoordinates(PLAYER_PED, -2392.046, -339.928, 65.930)
end
Lua:
function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand('narangi', job)
wait(-1)
end

function job()
    lua_thread.create(function()
setCharCoordinates(PLAYER_PED, -2390.457, -325.112, 65.499)
wait(1000) -- 1000 = 1 sec
setCharCoordinates(PLAYER_PED, -2385.841, -330.648, 65.813)
wait(1000)
setCharCoordinates(PLAYER_PED, -2392.046, -339.928, 65.930)
  end)
end
 
  • Bug
Реакции: Fott

Hossi_Bad

Участник
Автор темы
80
24
Lua:
function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand('narangi', job)
wait(-1)
end

function job()
    lua_thread.create(function()
setCharCoordinates(PLAYER_PED, -2390.457, -325.112, 65.499)
wait(1000) -- 1000 = 1 sec
setCharCoordinates(PLAYER_PED, -2385.841, -330.648, 65.813)
wait(1000)
setCharCoordinates(PLAYER_PED, -2392.046, -339.928, 65.930)
  end)
end

Thanks for your help

Another question, write another code that automatically presses the ALT button after each Coord

Thanks for your help

Another question, write another code that automatically presses the ALT button after each Coord

Please help me write this code

I need this code
 
Последнее редактирование:

Special Force

Потрачен
43
7
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Thanks for your help

Another question, write another code that automatically presses the ALT button after each Coord



Please help me write this code

I need this code
Lua:
function main()
    repeat
        wait(0)
    until isSampAvailable()
    sampRegisterChatCommand('narangi', job)
    wait(-1)
end

function job()
    lua_thread.create(function()

        wait(1000)
        setCharCoordinates(playerPed, -2390.457, -325.112, 65.499)
        wait(10000)
        ClickAlt()


        wait(10000)
        setCharCoordinates(playerPed, -2385.841, -330.648, 65.813)
        wait(1000)
        ClickAlt()


        wait(10000)
        setCharCoordinates(playerPed, -2392.046, -339.928, 65.930)
        wait(1000)
        ClickAlt()

    end)
end



function ClickAlt()
    lua_thread.create(function()
        setVirtualKeyDown(0xA4, true)
        wait(1000)
        setVirtualKeyDown(0xA4, false)
    end)
end
I answered you a little late :D
 
  • Влюблен
Реакции: Hossi_Bad