сбив

AlexLinkovin

Новичок
Автор темы
10
0
Есть ли какой-то не визуальный сбив?
Lua:
clearCharTasksImmediately(playerPed)
и
Lua:
clearCharTasks(PLAYER_PED)
визуальные,то есть анимка сбивается только у тебя,а у остальных она проигрывается.
Нужно что бы сбивалась анимка моментально,а не перебивалась другой.
 
Последнее редактирование:

blessave

Известный
364
106
Lua:
if isKeyJustPressed(VK_X) and isKeyCheckAvailable() then taskPlayAnim(playerPed, "HANDSUP", "PED", 4.0, false, false, false, false, 4) end

function isKeyCheckAvailable() -- Проверка на доступность клавиши
  if not isSampfuncsLoaded() then
    return not isPauseMenuActive()
  end
  local result = not isSampfuncsConsoleActive() and not isPauseMenuActive()
  if isSampLoaded() and isSampAvailable() then
    result = result and not sampIsChatInputActive() and not sampIsDialogActive()
  end
  return result
end
 
  • Нравится
Реакции: stranger_karelli

atizoff

приобретаю кашель за деньги
Проверенный
1,295
1,178
Lua:
if isKeyJustPressed(VK_X) and isKeyCheckAvailable() then taskPlayAnim(playerPed, "HANDSUP", "PED", 4.0, false, false, false, false, 4) end

function isKeyCheckAvailable() -- Проверка на доступность клавиши
  if not isSampfuncsLoaded() then
    return not isPauseMenuActive()
  end
  local result = not isSampfuncsConsoleActive() and not isPauseMenuActive()
  if isSampLoaded() and isSampAvailable() then
    result = result and not sampIsChatInputActive() and not sampIsDialogActive()
  end
  return result
end
а не перебивалась другой.
у тебя перебивается другой