Don't working natives SetSuperJumpThisFrame()

Why dont working?

function Admin:SuperJump()
  local playerPed = PlayerPedId()
    Citizen.CreateThread(function()
      while true do
        Citizen.Wait(0)
        SetSuperJumpThisFrame(PlayerPedId())
        print("working")
      end
    end)
end

SetSuperJumpThisFrame requires a player, not a ped so use PlayerId() instead

2 Likes

Oh… thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.